anilbhatt1 commited on
Commit
ada2249
1 Parent(s): e730e3a

Modified app.py to adjust output height & width of image

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -223,6 +223,9 @@ def gradio_fn(text):
223
  np_img_array = np.array(pil_img)
224
  return np_img_array
225
 
226
- demo = gr.Interface(fn=gradio_fn, inputs="text", outputs="image", title="CLIP Image Search")
 
 
 
227
 
228
  demo.launch(share=True)
 
223
  np_img_array = np.array(pil_img)
224
  return np_img_array
225
 
226
+ demo = gr.Interface(fn=gradio_fn,
227
+ inputs="text",
228
+ outputs=gr.Image(height=224, width=224),
229
+ title="CLIP Image Search")
230
 
231
  demo.launch(share=True)