vsrinivas commited on
Commit
b80cad9
·
verified ·
1 Parent(s): 5082434

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,9 +49,9 @@ def display_image_from_url(image_url):
49
 
50
  def toggle_inputs(input_type):
51
  if input_type == "URL":
52
- return gr.update(visible=True,label="Paste image URL"), gr.update(visible=True, label='URL Image'), gr.update(visible=False), gr.update(visible=True, label='Type in your labels seperated by comma(','))
53
  else:
54
- return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True, label='Uploaded Image'), gr.update(visible=True, label='Type in your labels seperated by comma(','))
55
 
56
  sample_image = Image.open("./kittens.jpeg")
57
  sample_labels = "a photo of a man, a photo of a dog, cats, two cats"
 
49
 
50
  def toggle_inputs(input_type):
51
  if input_type == "URL":
52
+ return gr.update(visible=True,label="Paste image URL"), gr.update(visible=True, label='URL Image'), gr.update(visible=False), gr.update(visible=True, label="Type in your labels seperated by comma(',')")
53
  else:
54
+ return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True, label='Uploaded Image'), gr.update(visible=True, label="Type in your labels seperated by comma(',')")
55
 
56
  sample_image = Image.open("./kittens.jpeg")
57
  sample_labels = "a photo of a man, a photo of a dog, cats, two cats"