Spaces:
Sleeping
Sleeping
Update app.py
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 |
# To change the LLM ^
|
| 7 |
|
| 8 |
def respond(message, history):
|
|
@@ -14,7 +14,8 @@ def respond(message, history):
|
|
| 14 |
|
| 15 |
messages.append({"role": "user", "content" : message})
|
| 16 |
|
| 17 |
-
response = client.chat_completion(messages,
|
|
|
|
| 18 |
# to change the length
|
| 19 |
)
|
| 20 |
|
|
|
|
| 2 |
import random
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
| 5 |
+
client = InferenceClient("google/gemma-3-27b-it")
|
| 6 |
# To change the LLM ^
|
| 7 |
|
| 8 |
def respond(message, history):
|
|
|
|
| 14 |
|
| 15 |
messages.append({"role": "user", "content" : message})
|
| 16 |
|
| 17 |
+
response = client.chat_completion(messages,
|
| 18 |
+
max_tokens = 100
|
| 19 |
# to change the length
|
| 20 |
)
|
| 21 |
|