gtani commited on
Commit
5f1fc74
·
verified ·
1 Parent(s): 11fbe8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -226,4 +226,10 @@ with gr.Blocks() as demo:
226
  )
227
 
228
  if __name__ == "__main__":
229
- demo.queue().launch(mcp_server=True)
 
 
 
 
 
 
 
226
  )
227
 
228
  if __name__ == "__main__":
229
+ auth_user = os.getenv("USER")
230
+ auth_pass = os.getenv("PASS")
231
+
232
+ demo.queue().launch(
233
+ mcp_server=True,
234
+ auth=(auth_user, auth_pass) if auth_user and auth_pass else None
235
+ )