Spaces:
Sleeping
Sleeping
Commit
•
43caee5
1
Parent(s):
01dfaaa
Update app.py
Browse files
app.py
CHANGED
@@ -16,14 +16,13 @@ def generate_chatml(user_messages, assistant_messages):
|
|
16 |
return chatml[16:-11]
|
17 |
|
18 |
with gr.Blocks() as demo:
|
19 |
-
gr.Markdown("# ChatML Template Generator")
|
20 |
-
gr.Markdown("## This will generate a prompt for you to enter to ChatGPT.")
|
21 |
|
22 |
with gr.Row():
|
23 |
with gr.Column():
|
24 |
-
user_input = gr.Textbox(label="User Messages (one per line)", lines=10)
|
25 |
with gr.Column():
|
26 |
-
assistant_input = gr.Textbox(label="Assistant Messages (one per line)", lines=10)
|
27 |
|
28 |
generate_btn = gr.Button("Generate ChatML")
|
29 |
output = gr.Textbox(label="Generated ChatML", lines=20)
|
|
|
16 |
return chatml[16:-11]
|
17 |
|
18 |
with gr.Blocks() as demo:
|
19 |
+
gr.Markdown("# ChatML Template Generator\n## This will generate a prompt for you to enter to ChatGPT.\n### There should be one more item in the user field for it to work.")
|
|
|
20 |
|
21 |
with gr.Row():
|
22 |
with gr.Column():
|
23 |
+
user_input = gr.Textbox(label="User Messages (one per line)", lines=10, value="I love you!\nI love that for you.")
|
24 |
with gr.Column():
|
25 |
+
assistant_input = gr.Textbox(label="Assistant Messages (one per line)", lines=10, value="I love my car.")
|
26 |
|
27 |
generate_btn = gr.Button("Generate ChatML")
|
28 |
output = gr.Textbox(label="Generated ChatML", lines=20)
|