Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,6 +53,9 @@ def respond(
|
|
| 53 |
messages.extend(history) # previous conversation turns
|
| 54 |
messages.append({"role": "user", "content": message}) # current user query
|
| 55 |
|
|
|
|
|
|
|
|
|
|
| 56 |
# 5️⃣ Stream the response back to the UI
|
| 57 |
response = ""
|
| 58 |
stream = client.chat.completions.create(
|
|
|
|
| 53 |
messages.extend(history) # previous conversation turns
|
| 54 |
messages.append({"role": "user", "content": message}) # current user query
|
| 55 |
|
| 56 |
+
|
| 57 |
+
MODEL_NAME = _secret("MODEL_NAME")
|
| 58 |
+
|
| 59 |
# 5️⃣ Stream the response back to the UI
|
| 60 |
response = ""
|
| 61 |
stream = client.chat.completions.create(
|