thak123 commited on
Commit
4c5e037
·
1 Parent(s): d3b4381

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -97,10 +97,11 @@ 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
- 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
 
 
97
  with gr.Blocks() as demo:
98
  image, text = sample_word_and_display_info()
99
  print(image, text)
100
+ with gr.Row():
101
+ img_1= gr.Image(label="image")
102
+ text_1 = gr.Markdown(label="text")
103
  button = gr.Button(label="Update Text")
104
+ button.click(sample_word_and_display_info,inputs="", outputs=text_1)
105
  demo.launch()
106
 
107