thak123 commited on
Commit
d3b4381
·
1 Parent(s): 7a2a6e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(demo.update)
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