Spaces:
Sleeping
Sleeping
Update app.py (#23)
Browse files- Update app.py (bc0030d493a9015411b67b3f9f715b817cc73270)
app.py
CHANGED
@@ -101,9 +101,10 @@ with gr.Blocks() as demo:
|
|
101 |
repo_id_input = gr.Textbox(placeholder="Enter Hugging Face repo ID", label="Hugging Face Repo ID")
|
102 |
|
103 |
result_output = gr.Markdown(label="Result")
|
|
|
104 |
|
105 |
process_button = gr.Button("Process")
|
106 |
-
process_button.click(fn=process_image_tag, inputs=[image_tag_input, repo_id_input], outputs=[result_output,
|
107 |
|
108 |
# Launch the Gradio app
|
109 |
demo.launch()
|
|
|
101 |
repo_id_input = gr.Textbox(placeholder="Enter Hugging Face repo ID", label="Hugging Face Repo ID")
|
102 |
|
103 |
result_output = gr.Markdown(label="Result")
|
104 |
+
result_image = gr.Image(show_label=False)
|
105 |
|
106 |
process_button = gr.Button("Process")
|
107 |
+
process_button.click(fn=process_image_tag, inputs=[image_tag_input, repo_id_input], outputs=[result_output, result_image])
|
108 |
|
109 |
# Launch the Gradio app
|
110 |
demo.launch()
|