helloparthshah commited on
Commit
1ef7086
·
1 Parent(s): a97ca44

Adding back authentication

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", server_name="localhost", share=True)
234
- # else:
235
- # uvicorn.run(app, host="0.0.0.0", port=7860)
 
229
  if __name__ == "__main__":
230
  import uvicorn
231
 
232
+ if no_auth:
233
+ demo.launch(favicon_path="favicon.ico", server_name="localhost", share=True)
234
+ else:
235
+ uvicorn.run(app)