lnyan commited on
Commit
ca68c42
1 Parent(s): 77c81f7
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +0 -2
app.py CHANGED
@@ -156,10 +156,10 @@ parser.add_argument(
156
  "--local_model", type=str, help="use a model stored on your PC", default=""
157
  )
158
 
159
- if __name__ == "__main__":
160
  args = parser.parse_args()
161
  else:
162
- args = parser.parse_args(["--debug"])
163
  # args = parser.parse_args(["--debug"])
164
  if args.auth is not None:
165
  args.auth = tuple(args.auth)
@@ -788,7 +788,7 @@ with blocks as demo:
788
  # title
789
  title = gr.Markdown(
790
  """
791
- **stablediffusion-infinity**: Outpainting with Stable Diffusion on an infinite canvas: [https://github.com/lkwq007/stablediffusion-infinity](https://github.com/lkwq007/stablediffusion-infinity) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lkwq007/stablediffusion-infinity/blob/master/stablediffusion_infinity_colab.ipynb) [![Setup Locally](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Setup-Locally-blue)](https://github.com/lkwq007/stablediffusion-infinity/blob/master/docs/setup_guide.md)
792
  """,
793
  elem_id="markdown",
794
  )
 
156
  "--local_model", type=str, help="use a model stored on your PC", default=""
157
  )
158
 
159
+ if __name__ == "__main__" and not RUN_IN_SPACE:
160
  args = parser.parse_args()
161
  else:
162
+ args = parser.parse_args()
163
  # args = parser.parse_args(["--debug"])
164
  if args.auth is not None:
165
  args.auth = tuple(args.auth)
 
788
  # title
789
  title = gr.Markdown(
790
  """
791
+ **stablediffusion-infinity**: Outpainting with Stable Diffusion on an infinite canvas: [https://github.com/lkwq007/stablediffusion-infinity](https://github.com/lkwq007/stablediffusion-infinity) [Open_In_Colab](https://colab.research.google.com/github/lkwq007/stablediffusion-infinity/blob/master/stablediffusion_infinity_colab.ipynb) [Setup_Locally](https://github.com/lkwq007/stablediffusion-infinity/blob/master/docs/setup_guide.md)
792
  """,
793
  elem_id="markdown",
794
  )
requirements.txt CHANGED
@@ -11,6 +11,4 @@ scikit-image
11
  diffusers==0.6.0
12
  transformers
13
  ftfy
14
- fpie
15
- gradio>=3.6
16
  fpie
 
11
  diffusers==0.6.0
12
  transformers
13
  ftfy
 
 
14
  fpie