Spaces:
Sleeping
Sleeping
trying deepseek
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
| 5 |
-
client = InferenceClient ("
|
| 6 |
|
| 7 |
def respond(message, history):
|
| 8 |
messages = [{"role" : "system", "content" : "You are a friendly chatbot."}] #change personality
|
|
@@ -22,4 +22,4 @@ def random_message(message, history):
|
|
| 22 |
|
| 23 |
chatbot = gr.ChatInterface(respond, type = "messages")
|
| 24 |
|
| 25 |
-
chatbot.launch()
|
|
|
|
| 2 |
import random
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
| 5 |
+
client = InferenceClient ("deepseek-ai/DeepSeek-R1-Distill-Qwen-32B") #change the LLM
|
| 6 |
|
| 7 |
def respond(message, history):
|
| 8 |
messages = [{"role" : "system", "content" : "You are a friendly chatbot."}] #change personality
|
|
|
|
| 22 |
|
| 23 |
chatbot = gr.ChatInterface(respond, type = "messages")
|
| 24 |
|
| 25 |
+
chatbot.launch(debug=true)
|