Update app.py
Browse files
app.py
CHANGED
@@ -11,4 +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 |
-
grc.Client("TeamTonic/coherebot"
|
|
|
|
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"])
|