Spaces:
Runtime error
Runtime error
Troubleshoot server problem
Browse files- README.md +12 -3
- app.py +10 -4
- assets/favicon.ico +0 -0
- requirements.txt +3 -2
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
---
|
2 |
title: Gradio User History
|
3 |
sdk: gradio
|
4 |
-
sdk_version: 5.
|
5 |
app_file: app.py
|
6 |
emoji: 🖼️
|
7 |
colorFrom: gray
|
@@ -10,8 +10,11 @@ pinned: false
|
|
10 |
fullWidth: true
|
11 |
hf_oauth: true
|
12 |
space_ci:
|
13 |
-
trusted_authors:
|
14 |
-
|
|
|
|
|
|
|
15 |
hardware: cpu-basic
|
16 |
---
|
17 |
|
@@ -54,6 +57,12 @@ hf_oauth: true
|
|
54 |
```bash
|
55 |
# requirements.txt
|
56 |
git+https://huggingface.co/spaces/Wauplin/gradio-user-history
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
```
|
58 |
|
59 |
|
|
|
1 |
---
|
2 |
title: Gradio User History
|
3 |
sdk: gradio
|
4 |
+
sdk_version: 5.23.2
|
5 |
app_file: app.py
|
6 |
emoji: 🖼️
|
7 |
colorFrom: gray
|
|
|
10 |
fullWidth: true
|
11 |
hf_oauth: true
|
12 |
space_ci:
|
13 |
+
trusted_authors:
|
14 |
+
private: auto
|
15 |
+
secrets:
|
16 |
+
- SPACE_CI_SECRET
|
17 |
+
- HF_TOKEN
|
18 |
hardware: cpu-basic
|
19 |
---
|
20 |
|
|
|
57 |
```bash
|
58 |
# requirements.txt
|
59 |
git+https://huggingface.co/spaces/Wauplin/gradio-user-history
|
60 |
+
filetype @ git+https://github.com/h2non/filetype.py.git
|
61 |
+
gradio[oauth]
|
62 |
+
mutagen
|
63 |
+
tqdm
|
64 |
+
torch==2.6.0 --extra-index-url https://download.pytorch.org/whl/cu124
|
65 |
+
torchaudio>=2.0.0,<2.6.2 --extra-index-url https://download.pytorch.org/whl/cu124
|
66 |
```
|
67 |
|
68 |
|
app.py
CHANGED
@@ -7,10 +7,10 @@ from pathlib import Path
|
|
7 |
import gradio as gr
|
8 |
import src.gradio_user_history as gr_user_history
|
9 |
from gradio_client import Client
|
10 |
-
from gradio_space_ci import enable_space_ci
|
11 |
|
12 |
|
13 |
-
enable_space_ci()
|
14 |
|
15 |
|
16 |
client = Client("multimodalart/stable-cascade")
|
@@ -51,7 +51,7 @@ def generate(prompt: str, negprompt: str, profile: gr.OAuthProfile | None) -> tu
|
|
51 |
return [generated_img_path] # type: ignore
|
52 |
|
53 |
|
54 |
-
with gr.Blocks(css="style.css"
|
55 |
with gr.Group():
|
56 |
prompt = gr.Text(show_label=False, placeholder="Prompt")
|
57 |
negprompt = gr.Text(show_label=False, placeholder="Negative Prompt")
|
@@ -73,4 +73,10 @@ with gr.Blocks() as demo_with_history:
|
|
73 |
gr_user_history.render()
|
74 |
|
75 |
if __name__ == "__main__":
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
import gradio as gr
|
8 |
import src.gradio_user_history as gr_user_history
|
9 |
from gradio_client import Client
|
10 |
+
#from gradio_space_ci import enable_space_ci
|
11 |
|
12 |
|
13 |
+
#enable_space_ci()
|
14 |
|
15 |
|
16 |
client = Client("multimodalart/stable-cascade")
|
|
|
51 |
return [generated_img_path] # type: ignore
|
52 |
|
53 |
|
54 |
+
with gr.Blocks(css="style.css") as demo:
|
55 |
with gr.Group():
|
56 |
prompt = gr.Text(show_label=False, placeholder="Prompt")
|
57 |
negprompt = gr.Text(show_label=False, placeholder="Negative Prompt")
|
|
|
73 |
gr_user_history.render()
|
74 |
|
75 |
if __name__ == "__main__":
|
76 |
+
launch_args = {}
|
77 |
+
launch_kwargs = {}
|
78 |
+
launch_kwargs['allowed_paths'] = ["assets/", "data/_user_history", "/data/_user_history/Surn"]
|
79 |
+
launch_kwargs['favicon_path'] = "./assets/favicon.ico"
|
80 |
+
#launch_kwargs['inbrowser'] = True
|
81 |
+
|
82 |
+
demo_with_history.queue().launch(**launch_kwargs)
|
assets/favicon.ico
ADDED
|
requirements.txt
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
#git+https://huggingface.co/spaces/Wauplin/gradio-user-history
|
2 |
-
gradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/[email protected]
|
3 |
filetype @ git+https://github.com/h2non/filetype.py.git
|
|
|
4 |
gradio[oauth]
|
5 |
mutagen
|
|
|
6 |
torch==2.6.0 --extra-index-url https://download.pytorch.org/whl/cu124
|
7 |
torchaudio>=2.0.0,<2.6.2 --extra-index-url https://download.pytorch.org/whl/cu124
|
8 |
-
tqdm
|
|
|
1 |
#git+https://huggingface.co/spaces/Wauplin/gradio-user-history
|
2 |
+
#gradio-space-ci @ git+https://huggingface.co/spaces/Wauplin/[email protected]
|
3 |
filetype @ git+https://github.com/h2non/filetype.py.git
|
4 |
+
gradio-client
|
5 |
gradio[oauth]
|
6 |
mutagen
|
7 |
+
tqdm
|
8 |
torch==2.6.0 --extra-index-url https://download.pytorch.org/whl/cu124
|
9 |
torchaudio>=2.0.0,<2.6.2 --extra-index-url https://download.pytorch.org/whl/cu124
|
|