Spaces:
Runtime error
Runtime error
Chatbot example follows the original prompt from chat.petals.ml.
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ with gr.Blocks() as iface:
|
|
97 |
|
98 |
with gr.Row():
|
99 |
button_generate = gr.Button("Generate")
|
100 |
-
button_stop = gr.Button("Stop") # TODO, not supported by websocket API yet.
|
101 |
|
102 |
# Automatically copy the output at the end of prompt
|
103 |
copy_output = gr.Checkbox(label="Output -> Prompt")
|
@@ -111,8 +111,7 @@ with gr.Blocks() as iface:
|
|
111 |
examples=[
|
112 |
["The SQL command to extract all the users whose name starts with A is: ", "bloom", False, 0, 0, 1, False],
|
113 |
["The Spanish translation of thank you for your help is: ", "bloom", False, 0, 0, 1, False],
|
114 |
-
["A human talks to a powerful AI that follows the human's instructions
|
115 |
-
"and writes exhaustive, very detailed answer.</s>\n"
|
116 |
"Human: Hi!</s>\n"
|
117 |
"AI: Hi! How can I help you?</s>\n"
|
118 |
"Human: What's the capital of Portugal?</s>\n"
|
|
|
97 |
|
98 |
with gr.Row():
|
99 |
button_generate = gr.Button("Generate")
|
100 |
+
# button_stop = gr.Button("Stop") # TODO, not supported by websocket API yet.
|
101 |
|
102 |
# Automatically copy the output at the end of prompt
|
103 |
copy_output = gr.Checkbox(label="Output -> Prompt")
|
|
|
111 |
examples=[
|
112 |
["The SQL command to extract all the users whose name starts with A is: ", "bloom", False, 0, 0, 1, False],
|
113 |
["The Spanish translation of thank you for your help is: ", "bloom", False, 0, 0, 1, False],
|
114 |
+
["A human talks to a powerful AI that follows the human's instructions.</s>\n"
|
|
|
115 |
"Human: Hi!</s>\n"
|
116 |
"AI: Hi! How can I help you?</s>\n"
|
117 |
"Human: What's the capital of Portugal?</s>\n"
|