Tonic commited on
Commit
c149100
·
1 Parent(s): 4a67367

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,6 +10,6 @@ if hf_token is None or inference_endpoint is None:
10
  raise ValueError("HF_TOKEN or INFERENCE_ENDPOINT environment variable not set")
11
 
12
  secrets = {"HF_TOKEN": hf_token, "INFERENCE_ENDPOINT": inference_endpoint}
13
- gr.Client.duplicate("TeamTonic/coherebot", private=False, secrets=secrets, sleep_timeout=2880).deploy_discord(to_id="predict")
14
  # client = gr.Client.duplicate("gradio-discord-bots/falcon-7b-instruct"
15
  # client.deploy_discord(api_names=["predict"])
 
10
  raise ValueError("HF_TOKEN or INFERENCE_ENDPOINT environment variable not set")
11
 
12
  secrets = {"HF_TOKEN": hf_token, "INFERENCE_ENDPOINT": inference_endpoint}
13
+ gr.client("TeamTonic/coherebot", private=False, secrets=secrets, sleep_timeout=2880).deploy_discord(to_id="predict")
14
  # client = gr.Client.duplicate("gradio-discord-bots/falcon-7b-instruct"
15
  # client.deploy_discord(api_names=["predict"])