Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
-
client = InferenceClient("
|
| 5 |
|
| 6 |
def respond(message, history):
|
| 7 |
|
|
@@ -14,8 +14,8 @@ def respond(message, history):
|
|
| 14 |
|
| 15 |
response = client.chat_completion(
|
| 16 |
messages,
|
| 17 |
-
max_tokens=
|
| 18 |
-
temperature=
|
| 19 |
)
|
| 20 |
|
| 21 |
return response['choices'][0]['message']['content'].strip()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
+
client = InferenceClient("deepseek-ai/DeepSeek-R1-Distill-Qwen-32B")
|
| 5 |
|
| 6 |
def respond(message, history):
|
| 7 |
|
|
|
|
| 14 |
|
| 15 |
response = client.chat_completion(
|
| 16 |
messages,
|
| 17 |
+
max_tokens=100,
|
| 18 |
+
temperature=1.2
|
| 19 |
)
|
| 20 |
|
| 21 |
return response['choices'][0]['message']['content'].strip()
|