Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -97,10 +97,10 @@ def sample_word_and_display_info():
|
|
97 |
with gr.Blocks() as demo:
|
98 |
image, text = sample_word_and_display_info()
|
99 |
print(image, text)
|
100 |
-
gr.Image(image)
|
101 |
-
gr.Markdown(text)
|
102 |
-
button = gr.Button("Update Text")
|
103 |
-
button.click(
|
104 |
demo.launch()
|
105 |
|
106 |
|
|
|
97 |
with gr.Blocks() as demo:
|
98 |
image, text = sample_word_and_display_info()
|
99 |
print(image, text)
|
100 |
+
img_1= gr.Image(label="image")
|
101 |
+
text_1 = gr.Markdown(label="text")
|
102 |
+
button = gr.Button(label="Update Text")
|
103 |
+
button.click(sample_word_and_display_info,input="", output=text_1)
|
104 |
demo.launch()
|
105 |
|
106 |
|