Ryouko65777 commited on
Commit
ebb5fa6
·
verified ·
1 Parent(s): 2662a39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -24
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
- with gr.Row():
17
- link = gr.Textbox(
18
- label = "URL",
19
- placeholder = "Paste the URL here",
20
- interactive = True,
21
- )
22
- out_path = gr.Textbox(
23
- label = "Output Path",
24
- placeholder = "Place the output path here",
25
- interactive = False,
26
- value = "/home/user/app"
27
- )
28
- with gr.Row():
29
- token = gr.Textbox(
30
- label = "CivitAI API Key",
31
- placeholder = "Paste the API Key here. Only needed the first time per session",
32
- interactive = True,
33
- )
34
- with gr.Row():
35
- button = gr.Button("Download!", variant = "primary")
36
- with gr.Row():
37
- outputs = gr.Textbox(
38
- label = "Output information",
39
- interactive = False,
 
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])