Swathi02 commited on
Commit
538edbe
·
verified ·
1 Parent(s): 92786d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -217,9 +217,9 @@ def change_vis():
217
  if fresh_start:
218
  fresh_start = not fresh_start
219
  if count >= 30:
220
- return gr.Button.update(visible=False), gr.Button.update(visible=False)
221
  else:
222
- return gr.Button.update(visible=True), gr.Button.update(visible=False)
223
 
224
 
225
  image_id = 1
 
217
  if fresh_start:
218
  fresh_start = not fresh_start
219
  if count >= 30:
220
+ return gr.Lable(visible=False), gr.Button(visible=False), gr.Button(visible=False)
221
  else:
222
+ return gr.Lable(visible=True), gr.Button(visible=True), gr.Button(visible=False)
223
 
224
 
225
  image_id = 1