Spaces:
Sleeping
Sleeping
Upload 6 files
Browse files- README.md +1 -1
- app.py +5 -3
- template/app.py +1 -1
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🐶
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 5.0.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
from t2i_space import get_t2i_space_contents
|
3 |
|
4 |
-
css = """
|
|
|
|
|
5 |
|
6 |
with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
|
7 |
-
gr.Markdown("# Gradio Demo Space creation helper")
|
8 |
gr.Markdown(
|
9 |
f"""
|
10 |
**The steps are the following**:
|
@@ -20,7 +22,7 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
|
|
20 |
repo_id = gr.Textbox(label="Model repo ID", placeholder="username/modelname", value="", max_lines=1)
|
21 |
with gr.Accordion("Advanced", open=False):
|
22 |
with gr.Row():
|
23 |
-
gradio_version = gr.Textbox(label="Gradio version", placeholder="username/modelname", value="
|
24 |
private_ok = gr.Checkbox(label="Allow private repo", value=True)
|
25 |
with gr.Row():
|
26 |
hf_user = gr.Textbox(label="Your HF user ID (Optional)", placeholder="username", value="", max_lines=1)
|
|
|
1 |
import gradio as gr
|
2 |
from t2i_space import get_t2i_space_contents
|
3 |
|
4 |
+
css = """
|
5 |
+
.title { text-align: center; }
|
6 |
+
"""
|
7 |
|
8 |
with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
|
9 |
+
gr.Markdown("# Gradio Demo Space creation helper V2", elem_classes="title")
|
10 |
gr.Markdown(
|
11 |
f"""
|
12 |
**The steps are the following**:
|
|
|
22 |
repo_id = gr.Textbox(label="Model repo ID", placeholder="username/modelname", value="", max_lines=1)
|
23 |
with gr.Accordion("Advanced", open=False):
|
24 |
with gr.Row():
|
25 |
+
gradio_version = gr.Textbox(label="Gradio version", placeholder="username/modelname", value="5.0.1", max_lines=1)
|
26 |
private_ok = gr.Checkbox(label="Allow private repo", value=True)
|
27 |
with gr.Row():
|
28 |
hf_user = gr.Textbox(label="Your HF user ID (Optional)", placeholder="username", value="", max_lines=1)
|
template/app.py
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
-
demo = gr.load("{repo_id}", src="models", hf_token=os.environ.get("HF_TOKEN")).launch()
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
+
demo = gr.load("{repo_id}", src="models", hf_token=os.environ.get("HF_TOKEN"), examples=None).launch()
|