Spaces:
Runtime error
Runtime error
nroggendorff
commited on
Commit
•
947145e
1
Parent(s):
3d7663e
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def generate_chatml(user_messages, assistant_messages):
|
|
|
|
|
4 |
max_messages = max(len(user_messages), len(assistant_messages))
|
5 |
|
6 |
chatml = ""
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def generate_chatml(user_messages, assistant_messages):
|
4 |
+
user_messages = user_messages.split("\n")
|
5 |
+
assistant_messages = assistant_messages.split("\n")
|
6 |
max_messages = max(len(user_messages), len(assistant_messages))
|
7 |
|
8 |
chatml = ""
|