Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
-
client = InferenceClient("
|
| 5 |
|
| 6 |
def respond(message, history):
|
| 7 |
-
messages = []
|
| 8 |
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
+
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 5 |
|
| 6 |
def respond(message, history):
|
| 7 |
+
messages = [{"role": "system", "content": "You are a friendly chatbot."}]
|
| 8 |
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|