Siddhanta19 commited on
Commit
47969b8
1 Parent(s): af8be4b

Update app.py

Browse files

forgot to comment properly :p

Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -62,7 +62,7 @@ with gr.Blocks(theme='NoCrypt/miku') as demo:
62
  )
63
  check = gr.Checkbox(label="Go")
64
  with gr.Column(variant="panel", scale=2):
65
- Commented out the image
66
  img = gr.Image(
67
  #"https://i.ibb.co/F4hKFrZ/dark-miku.webp",
68
  "https://gradio.app/assets/img/header-image.jpg",
@@ -74,14 +74,13 @@ with gr.Blocks(theme='NoCrypt/miku') as demo:
74
  "Clear", label="Secondary Button", variant="secondary"
75
  )
76
 
77
- Commented out the function that returns an image
78
  def go(*args):
79
  time.sleep(3)
80
  return "https://gradio.app/assets/img/header-image.jpg"#"https://i.ibb.co/0rfK9Wm/light-miku-faded.webp"
81
 
82
  go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
83
 
84
- Commented out the function that clears the image
85
  def clear():
86
  time.sleep(0.2)
87
  return None
 
62
  )
63
  check = gr.Checkbox(label="Go")
64
  with gr.Column(variant="panel", scale=2):
65
+ #Commented out the image
66
  img = gr.Image(
67
  #"https://i.ibb.co/F4hKFrZ/dark-miku.webp",
68
  "https://gradio.app/assets/img/header-image.jpg",
 
74
  "Clear", label="Secondary Button", variant="secondary"
75
  )
76
 
77
+ #Commented out returning image and placed an invalid image link
78
  def go(*args):
79
  time.sleep(3)
80
  return "https://gradio.app/assets/img/header-image.jpg"#"https://i.ibb.co/0rfK9Wm/light-miku-faded.webp"
81
 
82
  go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
83
 
 
84
  def clear():
85
  time.sleep(0.2)
86
  return None