Omnibus commited on
Commit
ce6f474
1 Parent(s): 9cc62f1

Update flood.py

Browse files
Files changed (1) hide show
  1. flood.py +2 -2
flood.py CHANGED
@@ -106,7 +106,7 @@ def go_fn():
106
 
107
  def the_thing(inputs,input_rand, model_choice,num,top_num,timestr, frame_box, frame_file_box, frame_tar_box):
108
  if num != 0:
109
- if int(num) <= int(top_num):
110
  #proc1=
111
  inputs=f"{inputs}{input_rand}"
112
  proc1=models2[model_choice]
@@ -200,7 +200,7 @@ with gr.Blocks(css=css) as myface:
200
  with gr.Row():
201
  frame_num=gr.Textbox(label="Current",value=0,interactive=False)
202
  time_box=gr.Textbox(label="Unique Bandaid", interactive=False)
203
- frame_top=gr.Textbox(label="How many images? Max 10 for Demo", value=10,interactive=False)
204
  with gr.Row():
205
  model_name1 = gr.Dropdown(show_label=False, choices=[m for m in models], type="index", value=current_model, interactive=True)
206
  #magic_text=gr.Textbox(label="Magic Prompt",lines=3)
 
106
 
107
  def the_thing(inputs,input_rand, model_choice,num,top_num,timestr, frame_box, frame_file_box, frame_tar_box):
108
  if num != 0:
109
+ if int(num) <= int(top_num) and int(num) <= 20:
110
  #proc1=
111
  inputs=f"{inputs}{input_rand}"
112
  proc1=models2[model_choice]
 
200
  with gr.Row():
201
  frame_num=gr.Textbox(label="Current",value=0,interactive=False)
202
  time_box=gr.Textbox(label="Unique Bandaid", interactive=False)
203
+ frame_top=gr.Textbox(label="How many images? Max 20 Demo", value=10,interactive=True)
204
  with gr.Row():
205
  model_name1 = gr.Dropdown(show_label=False, choices=[m for m in models], type="index", value=current_model, interactive=True)
206
  #magic_text=gr.Textbox(label="Magic Prompt",lines=3)