Commit
•
ab8e6c2
1
Parent(s):
20f4682
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,8 @@ with gr.Blocks() as demo:
|
|
62 |
|
63 |
```python
|
64 |
secrets = {"HF_TOKEN": "<your-key-here>", "INFERENCE_ENDPOINT": "<endpoint-url>"}
|
65 |
-
grc.Client.duplicate("gradio-discord-bots/falcon-7b-instruct", private=False, secrets=secrets)
|
|
|
66 |
""")
|
67 |
with gr.Accordion(label="Inference Endpoints", open=False):
|
68 |
gr.Markdown("""
|
|
|
62 |
|
63 |
```python
|
64 |
secrets = {"HF_TOKEN": "<your-key-here>", "INFERENCE_ENDPOINT": "<endpoint-url>"}
|
65 |
+
client = grc.Client.duplicate("gradio-discord-bots/falcon-7b-instruct", private=False, secrets=secrets)
|
66 |
+
client.deploy_discord(api_names=["chat"])
|
67 |
""")
|
68 |
with gr.Accordion(label="Inference Endpoints", open=False):
|
69 |
gr.Markdown("""
|