Tonic commited on
Commit
3a14ca4
·
1 Parent(s): 3487a04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -10,5 +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
- client = gr.Client.duplicate("gradio-discord-bots/falcon-7b-instruct", private=False, secrets=secrets, sleep_timeout=2880)
14
- 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
+ grc.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"])