helloparthshah commited on
Commit
c79633e
·
1 Parent(s): 2c62242

Enabling authentication again

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -229,7 +229,7 @@ app = gr.mount_gradio_app(app, demo, path="/hashiru", auth_dependency=get_user)
229
  if __name__ == "__main__":
230
  import uvicorn
231
 
232
- # if no_auth:
233
- demo.launch(favicon_path="favicon.ico")
234
- # else:
235
- # uvicorn.run(app)
 
229
  if __name__ == "__main__":
230
  import uvicorn
231
 
232
+ if no_auth:
233
+ demo.launch(favicon_path="favicon.ico")
234
+ else:
235
+ uvicorn.run(app, port=7860)