Update app.py
Browse files
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.
|
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"])
|