Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,23 +10,19 @@ CSS = """
|
|
10 |
"""
|
11 |
|
12 |
with gr.Blocks(theme="Hev832/Applio", fill_width=True, css=CSS) as demo:
|
13 |
-
with gr.Tab("inferenece"):
|
14 |
-
gr.Markdown("in progress")
|
15 |
-
with gr.Tab("Download model"):
|
16 |
-
gr.Markdown("## Download Model for infernece")
|
17 |
-
url_input = gr.Textbox(label="Model URL", placeholder="Enter the URL of the model")
|
18 |
-
dir_name_input = gr.Textbox(label="Directory Name", placeholder="Enter the directory name")
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
output = gr.Textbox(label="Output Models")
|
25 |
-
|
26 |
-
download_button = gr.Button("Download Model")
|
27 |
|
28 |
-
download_button.click(download_model, inputs=[url_input, dir_name_input], outputs=output)
|
29 |
-
|
30 |
with gr.Tab(" Credits"):
|
31 |
gr.Markdown(
|
32 |
"""
|
@@ -35,4 +31,12 @@ with gr.Blocks(theme="Hev832/Applio", fill_width=True, css=CSS) as demo:
|
|
35 |
|
36 |
|
37 |
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
"""
|
11 |
|
12 |
with gr.Blocks(theme="Hev832/Applio", fill_width=True, css=CSS) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
+
with gr.Tabs():
|
15 |
+
with gr.Tab("inferenece"):
|
16 |
+
gr.Markdown("in progress")
|
17 |
+
with gr.Tab("Download model"):
|
18 |
+
gr.Markdown("## Download Model for infernece")
|
19 |
+
url_input = gr.Textbox(label="Model URL", placeholder="Enter the URL of the model")
|
20 |
+
dir_name_input = gr.Textbox(label="Directory Name", placeholder="Enter the directory name")
|
21 |
+
|
22 |
+
output = gr.Textbox(label="Output Models")
|
23 |
+
download_button = gr.Button("Download Model")
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
|
|
|
|
26 |
with gr.Tab(" Credits"):
|
27 |
gr.Markdown(
|
28 |
"""
|
|
|
31 |
|
32 |
|
33 |
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
download_button.click(download_model, inputs=[url_input, dir_name_input], outputs=output)
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
demo.launch(debug=True,show_api=False)
|