Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,30 +13,31 @@ def downloader(url, output_path, civitai_token):
|
|
13 |
with gr.Blocks(title = "CivitAI Downloader") as app:
|
14 |
gr.Markdown("<h1> ⬇️ CivitAI Downloader ⬇️ </h1>")
|
15 |
gr.Markdown(f" gradio demo by [Eddycrack864](https://github.com/Eddycrack864)")
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
40 |
)
|
41 |
|
42 |
button.click(downloader, [link, out_path, token], [outputs])
|
|
|
13 |
with gr.Blocks(title = "CivitAI Downloader") as app:
|
14 |
gr.Markdown("<h1> ⬇️ CivitAI Downloader ⬇️ </h1>")
|
15 |
gr.Markdown(f" gradio demo by [Eddycrack864](https://github.com/Eddycrack864)")
|
16 |
+
|
17 |
+
with gr.Row():
|
18 |
+
link = gr.Textbox(
|
19 |
+
label = "URL",
|
20 |
+
placeholder = "Paste the URL here",
|
21 |
+
interactive = True,
|
22 |
+
)
|
23 |
+
out_path = gr.Textbox(
|
24 |
+
label = "Output Path",
|
25 |
+
placeholder = "Place the output path here",
|
26 |
+
interactive = False,
|
27 |
+
value = "/home/user/app"
|
28 |
+
)
|
29 |
+
with gr.Row():
|
30 |
+
token = gr.Textbox(
|
31 |
+
label = "CivitAI API Key",
|
32 |
+
placeholder = "Paste the API Key here. Only needed the first time per session",
|
33 |
+
interactive = True,
|
34 |
+
)
|
35 |
+
with gr.Row():
|
36 |
+
button = gr.Button("Download!", variant = "primary")
|
37 |
+
with gr.Row():
|
38 |
+
outputs = gr.Textbox(
|
39 |
+
label = "Output information",
|
40 |
+
interactive = False,
|
41 |
)
|
42 |
|
43 |
button.click(downloader, [link, out_path, token], [outputs])
|