Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ import random
|
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
| 5 |
client = InferenceClient("google/gemma-3-27b-it")
|
| 6 |
-
#Deepseek was more
|
| 7 |
# Change the model
|
| 8 |
|
| 9 |
|
|
@@ -15,7 +14,7 @@ def respond(message, history):
|
|
| 15 |
|
| 16 |
response = client.chat_completion(
|
| 17 |
messages,
|
| 18 |
-
max_tokens=
|
| 19 |
)
|
| 20 |
|
| 21 |
return response['choices'][0]['message']['content'].strip()
|
|
|
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
| 5 |
client = InferenceClient("google/gemma-3-27b-it")
|
|
|
|
| 6 |
# Change the model
|
| 7 |
|
| 8 |
|
|
|
|
| 14 |
|
| 15 |
response = client.chat_completion(
|
| 16 |
messages,
|
| 17 |
+
max_tokens=200 # change the length of message
|
| 18 |
)
|
| 19 |
|
| 20 |
return response['choices'][0]['message']['content'].strip()
|