Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,8 @@ 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"}]
|
|
@@ -20,11 +21,13 @@ def random_message (message, history):
|
|
| 20 |
wow = random.choice(choices)
|
| 21 |
theme = soft
|
| 22 |
return wow
|
|
|
|
|
|
|
| 23 |
chatbot = gr.ChatInterface(respond, type = "messages", title = "chatty")
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
-
chatbot.launch()
|
| 28 |
|
| 29 |
# repeats messages.
|
| 30 |
|
|
|
|
| 2 |
import random
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
| 5 |
+
client = InferenceClient("google/gemma-3-27b-it")
|
| 6 |
+
##change the LLM
|
| 7 |
|
| 8 |
def respond(message, history):
|
| 9 |
messages = [{"role":"system","content":"You are a friendly chatbot"}]
|
|
|
|
| 21 |
wow = random.choice(choices)
|
| 22 |
theme = soft
|
| 23 |
return wow
|
| 24 |
+
|
| 25 |
+
|
| 26 |
chatbot = gr.ChatInterface(respond, type = "messages", title = "chatty")
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
+
chatbot.launch(debug=True)
|
| 31 |
|
| 32 |
# repeats messages.
|
| 33 |
|