radames commited on
Commit
f59d8c0
1 Parent(s): 012b226

change order

Browse files
stablediffusion-infinity/app.py CHANGED
@@ -117,7 +117,7 @@ def get_model():
117
 
118
 
119
  # init model on startup
120
- # get_model()
121
 
122
 
123
  def run_outpaint(
@@ -240,7 +240,8 @@ with blocks as demo:
240
 
241
  blocks.config['dev_mode'] = False
242
 
243
-
 
244
  def generateAuthToken():
245
  response = requests.get(f"https://liveblocks.io/api/authorize",
246
  headers={"Authorization": f"Bearer {LIVEBLOCKS_SECRET}"})
@@ -313,7 +314,7 @@ async def autorize(request: Request, db: sqlite3.Connection = Depends(get_db)):
313
  raise Exception(response.status_code, response.text)
314
 
315
 
316
- @ app.post('/api/uploadfile')
317
  async def create_upload_file(background_tasks: BackgroundTasks, file: UploadFile):
318
  contents = await file.read()
319
  file_size = len(contents)
@@ -350,9 +351,6 @@ app.add_middleware(
350
  allow_headers=["*"],
351
  )
352
 
353
- app = gr.mount_gradio_app(app, blocks, "/gradio",
354
- gradio_api_url="http://0.0.0.0:7860/gradio/")
355
-
356
 
357
  if __name__ == "__main__":
358
  uvicorn.run(app, host="0.0.0.0", port=7860,
 
117
 
118
 
119
  # init model on startup
120
+ get_model()
121
 
122
 
123
  def run_outpaint(
 
240
 
241
  blocks.config['dev_mode'] = False
242
 
243
+ app = gr.mount_gradio_app(app, blocks, "/gradio",
244
+ gradio_api_url="http://0.0.0.0:7860/gradio/")
245
  def generateAuthToken():
246
  response = requests.get(f"https://liveblocks.io/api/authorize",
247
  headers={"Authorization": f"Bearer {LIVEBLOCKS_SECRET}"})
 
314
  raise Exception(response.status_code, response.text)
315
 
316
 
317
+ @app.post('/api/uploadfile')
318
  async def create_upload_file(background_tasks: BackgroundTasks, file: UploadFile):
319
  contents = await file.read()
320
  file_size = len(contents)
 
351
  allow_headers=["*"],
352
  )
353
 
 
 
 
354
 
355
  if __name__ == "__main__":
356
  uvicorn.run(app, host="0.0.0.0", port=7860,
stablediffusion-infinity/rooms.db CHANGED
Binary files a/stablediffusion-infinity/rooms.db and b/stablediffusion-infinity/rooms.db differ