Spaces:
Sleeping
Sleeping
Upload t2i_space.py
Browse files- t2i_space.py +1 -2
t2i_space.py
CHANGED
@@ -36,8 +36,7 @@ def save_space_contents(repo_id: str, dir: str):
|
|
36 |
return []
|
37 |
os.makedirs(dir, exist_ok=True)
|
38 |
model_name = repo_id.split("/")[-1]
|
39 |
-
app_py = f"""
|
40 |
-
import gradio as gr
|
41 |
demo = gr.load("{repo_id}", src="models").launch()
|
42 |
demo.launch()
|
43 |
"""
|
|
|
36 |
return []
|
37 |
os.makedirs(dir, exist_ok=True)
|
38 |
model_name = repo_id.split("/")[-1]
|
39 |
+
app_py = f"""import gradio as gr
|
|
|
40 |
demo = gr.load("{repo_id}", src="models").launch()
|
41 |
demo.launch()
|
42 |
"""
|