charliebaby2023 commited on
Commit
f4ed025
1 Parent(s): 2a1a6bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -60,7 +60,7 @@ def make_me():
60
  """)
61
  with gr.Row():
62
  output = [gr.Image(label=m, min_width=280) for m in default_models]
63
- current_models = [gr.Textbox(m, visible=False) for m in default_models]
64
  for m, o in zip(current_models, output):
65
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
66
  stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
@@ -77,7 +77,6 @@ def make_me():
77
 
78
 
79
  with gr.Blocks(css=".toast-wrap {position:absolute!important; bottom:0%!important; top:auto!important; display:none!important; }") as demo:
80
- gr.Markdown("<script>" + js_code + "</script>")
81
  make_me()
82
 
83
  demo.queue(concurrency_count=200)
 
60
  """)
61
  with gr.Row():
62
  output = [gr.Image(label=m, min_width=280) for m in default_models]
63
+ current_models = [gr.Textbox(m, visible=true) for m in default_models]
64
  for m, o in zip(current_models, output):
65
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
66
  stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
 
77
 
78
 
79
  with gr.Blocks(css=".toast-wrap {position:absolute!important; bottom:0%!important; top:auto!important; display:none!important; }") as demo:
 
80
  make_me()
81
 
82
  demo.queue(concurrency_count=200)