Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ types=[
|
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
-
def load_space(
|
| 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.
|
| 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():
|