mattiashallberg commited on
Commit
e53f398
·
verified ·
1 Parent(s): a13f04e

gr.Blocks()

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -32,7 +32,8 @@ def environ_auth(username, password):
32
  return True
33
  else:
34
  return False
35
-
36
- demo = gr.load("attuned-ai/AttunedSalesCo-Pilot-Private", src="spaces", hf_token=HF_TOKEN)
37
- demo.queue(max_size=20)
38
- demo.launch(auth=environ_auth)
 
 
32
  return True
33
  else:
34
  return False
35
+
36
+ with gr.Blocks() as attuned_copilot:
37
+ attuned_copilot = gr.load("attuned-ai/AttunedSalesCo-Pilot-Private", src="spaces", hf_token=HF_TOKEN)
38
+ attuned_copilot.queue(max_size=20)
39
+ attuned_copilot.launch(auth=environ_auth)