freddyaboulton HF staff commited on
Commit
20e3a37
1 Parent(s): 4c87f5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -60,8 +60,8 @@ with gr.Blocks() as demo:
60
 
61
  ### Then deploy to discord in one line! ⚡️
62
  ```python
63
- grc.Client.duplicate("gradio-discord-bots/falcon-7b-instruct", private=False,
64
- secrets={"HF_TOKEN": "<your-key-here>", "INFERENCE_ENDPOINT": "<endpoint-url>"}).deploy_discord()
65
  ```
66
  """)
67
  with gr.Accordion(label="Inference Endpoints", open=False):
 
60
 
61
  ### Then deploy to discord in one line! ⚡️
62
  ```python
63
+ secrets = {"HF_TOKEN": "<your-key-here>", "INFERENCE_ENDPOINT": "<endpoint-url>"}
64
+ grc.Client.duplicate("gradio-discord-bots/falcon-7b-instruct", private=False, secrets=secrets).deploy_discord(api_names=["chat"])
65
  ```
66
  """)
67
  with gr.Accordion(label="Inference Endpoints", open=False):