xp3857 commited on
Commit
d8875c8
·
1 Parent(s): ee1f0ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ types=[
22
 
23
 
24
 
25
- def load_space(t_name):
26
  uid = uuid.uuid4()
27
  r = requests.get(f'https://huggingface.co/spaces/{model_id}/raw/main/{d_app}')
28
  file = open(f'tmp_file{uid}.txt','w')
@@ -88,7 +88,7 @@ with gr.Blocks() as build:
88
  with gr.Row(visible=True) as no:
89
  pass_box=gr.Textbox()
90
  pass_btn=gr.Button()
91
- with gr.Row(visible=False) as yes:
92
  gr.Column(scale=1)
93
  with gr.Column(scale=3):
94
  with gr.Box():
 
22
 
23
 
24
 
25
+ def load_space(model_id,d_app):
26
  uid = uuid.uuid4()
27
  r = requests.get(f'https://huggingface.co/spaces/{model_id}/raw/main/{d_app}')
28
  file = open(f'tmp_file{uid}.txt','w')
 
88
  with gr.Row(visible=True) as no:
89
  pass_box=gr.Textbox()
90
  pass_btn=gr.Button()
91
+ with gr.Box(visible=False) as yes:
92
  gr.Column(scale=1)
93
  with gr.Column(scale=3):
94
  with gr.Box():