Spaces:
Running
Running
Commit
β’
c72ac0b
1
Parent(s):
f30e1e5
Update README.md
Browse files![Group 477.png](https://cdn-uploads.huggingface.co/production/uploads/626a9bfa03e2e2796f24ca11/c_OlnRrnhLF_SAbnIN7xB.png)
README.md
CHANGED
@@ -1,10 +1,40 @@
|
|
1 |
---
|
2 |
title: README
|
3 |
-
emoji:
|
4 |
colorFrom: gray
|
5 |
colorTo: purple
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
---
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
title: README
|
3 |
+
emoji: π€
|
4 |
colorFrom: gray
|
5 |
colorTo: purple
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
---
|
9 |
|
10 |
+
# Turn any Gradio ChatBot into a Discord Bot π€
|
11 |
+
|
12 |
+
We're excited to announce that Gradio can now automatically create a discord bot from any `gr.ChatInterface` app.
|
13 |
+
|
14 |
+
It's as easy as importing `gradio_client`, connecting to the app, and calling `deploy_discord`!
|
15 |
+
|
16 |
+
*π¦ Turning Llama 2 70b into a discord bot π¦*
|
17 |
+
```python
|
18 |
+
import gradio_client as grc
|
19 |
+
grc.Client("ysharma/Explore_llamav2_with_TGI").deploy_discord(to_id="llama2-70b-discord-bot")
|
20 |
+
```
|
21 |
+
|
22 |
+
<img src="https://gradio-builds.s3.amazonaws.com/demo-files/discordbots/guide/llama_chat.gif">
|
23 |
+
|
24 |
+
# Getting started with template spaces
|
25 |
+
|
26 |
+
To help get you started, we have created the following template spaces you can use to turn state of the art LLMs powered by Gradio to discord bots.
|
27 |
+
|
28 |
+
Currently we have template spaces for:
|
29 |
+
|
30 |
+
* [Llama-2-70b-chat-hf](https://huggingface.co/spaces/gradio-discord-bots/Llama-2-70b-chat-hf) powered by a FREE Hugging Face Inference Endpoint!
|
31 |
+
* [Llama-2-13b-chat-hf](https://huggingface.co/spaces/gradio-discord-bots/Llama-2-13b-chat-hf) powered by Hugging Face Inference Endpoints.
|
32 |
+
* [Llama-2-13b-chat-hf](https://huggingface.co/spaces/gradio-discord-bots/llama-2-13b-chat-transformers) powered by Hugging Face transformers.
|
33 |
+
* [falcon-7b-instruct](https://huggingface.co/spaces/gradio-discord-bots/falcon-7b-instruct) powered by Hugging Face Inference Endpoints.
|
34 |
+
* [gpt-3.5-turbo](https://huggingface.co/spaces/gradio-discord-bots/gpt-35-turbo), powered by openai. Requires an OpenAI key.
|
35 |
+
|
36 |
+
But once again, you can deploy ANY `gr.ChatInterface` app exposed on the internet! So don't hesitate to try it on your own Chatbots.
|
37 |
+
|
38 |
+
βοΈ Additional Note βοΈ: Technically, any gradio app that exposes an api route that takes in a single string and outputs a single string can be deployed to discord. But `gr.ChatInterface` apps naturally lend themselves to discord's chat functionality so we suggest you start with those.
|
39 |
+
|
40 |
+
|