thak123 commited on
Commit
49c7bae
·
1 Parent(s): 50d5573

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -85,26 +85,17 @@ def sample_word_and_display_info():
85
  print(f"Image URL: {image_url}")
86
  return image_url ,definition
87
  else:
88
- print(f"No information found for '{word}'")
89
-
90
  img = Image.New('RGB', (64,64) )
91
  return img, "No information found for '{word}'"
92
 
93
-
94
-
95
- def sample():
96
- return sample_word_and_display_info()
97
-
98
-
99
  with gr.Blocks() as demo:
100
- image, text sample_word_and_display_info()
101
  gr.Image(image)
102
  gr.Markdown(text)
103
 
104
  demo.launch()
105
 
106
- # iface = gr.Interface(fn=sample, inputs="text", outputs="image, text")
107
- # iface.launch()
108
 
109
 
110
 
 
85
  print(f"Image URL: {image_url}")
86
  return image_url ,definition
87
  else:
88
+ print(f"No information found for '{word}'")
 
89
  img = Image.New('RGB', (64,64) )
90
  return img, "No information found for '{word}'"
91
 
 
 
 
 
 
 
92
  with gr.Blocks() as demo:
93
+ image, text = sample_word_and_display_info()
94
  gr.Image(image)
95
  gr.Markdown(text)
96
 
97
  demo.launch()
98
 
 
 
99
 
100
 
101