Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,13 +13,9 @@ client = openai.OpenAI(
|
|
| 13 |
)
|
| 14 |
|
| 15 |
# -------------------------
|
| 16 |
-
# Chat function - Explain this
|
| 17 |
# -------------------------
|
| 18 |
def chat_with_poe(history, message):
|
| 19 |
-
"""
|
| 20 |
-
history: list of tuples [(user, bot), ...]
|
| 21 |
-
message: latest user input
|
| 22 |
-
"""
|
| 23 |
# Convert Gradio's history to Poe's format
|
| 24 |
messages = []
|
| 25 |
for user_msg, bot_msg in history:
|
|
|
|
| 13 |
)
|
| 14 |
|
| 15 |
# -------------------------
|
| 16 |
+
# Chat function - Explain this - By Alisha
|
| 17 |
# -------------------------
|
| 18 |
def chat_with_poe(history, message):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# Convert Gradio's history to Poe's format
|
| 20 |
messages = []
|
| 21 |
for user_msg, bot_msg in history:
|