xp3857 commited on
Commit
8c0c91d
1 Parent(s): bf18b4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,6 +5,8 @@ model = gr.Interface.load(f"models/{name}")
5
  o = os.getenv("P")
6
  h = gr.Textbox(value="Q",visible=False)
7
  def ac(h=h):
 
 
8
  if h == o:
9
  def im_fn(put):
10
  return model(put)
@@ -14,7 +16,7 @@ def ac(h=h):
14
  btn = gr.Button()
15
  btn.click(im_fn,put,out)
16
  b.queue(concurrency_count=100).launch()
17
- else:
18
  print("no")
19
  pass
20
  ac()
 
5
  o = os.getenv("P")
6
  h = gr.Textbox(value="Q",visible=False)
7
  def ac(h=h):
8
+ print(h)
9
+ print(o)
10
  if h == o:
11
  def im_fn(put):
12
  return model(put)
 
16
  btn = gr.Button()
17
  btn.click(im_fn,put,out)
18
  b.queue(concurrency_count=100).launch()
19
+ elif h != o:
20
  print("no")
21
  pass
22
  ac()