John6666 commited on
Commit
f39bcea
·
verified ·
1 Parent(s): f476e37

Upload t2i_space.py

Browse files
Files changed (1) hide show
  1. 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
  """