Tonic commited on
Commit
192c507
·
1 Parent(s): 7bc0ea4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,5 +11,5 @@ if hf_token is None or inference_endpoint is None:
11
  raise ValueError("HF_TOKEN or INFERENCE_ENDPOINT environment variable not set")
12
 
13
  secrets = {"HF_TOKEN": hf_token, "INFERENCE_ENDPOINT": inference_endpoint}
14
- client = grc.Client.duplicate("TeamTonic/coherebot", private=False, secrets=secrets, sleep_timeout=2880)
15
- client.deploy_discord(api_names=["predict"])
 
11
  raise ValueError("HF_TOKEN or INFERENCE_ENDPOINT environment variable not set")
12
 
13
  secrets = {"HF_TOKEN": hf_token, "INFERENCE_ENDPOINT": inference_endpoint}
14
+ import gradio_client as grc
15
+ grc.Client("TeamTonic/coherebot").deploy_discord(to_id="predict")