Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -304,16 +304,6 @@ def create_chatbot_demo():
|
|
| 304 |
# Clear button
|
| 305 |
clear_btn = gr.Button("Clear Conversation")
|
| 306 |
|
| 307 |
-
# Example inputs
|
| 308 |
-
gr.Examples(
|
| 309 |
-
[
|
| 310 |
-
["Tell me a short joke", 64, 32, ""],
|
| 311 |
-
["Write a short story", 64, 32, "0:Once, 5:upon, 10:time"],
|
| 312 |
-
["Explain quantum computing", 64, 32, ""],
|
| 313 |
-
],
|
| 314 |
-
[user_input, gen_length, steps, constraints_input],
|
| 315 |
-
)
|
| 316 |
-
|
| 317 |
# HELPER FUNCTIONS
|
| 318 |
def add_message(history, message, response):
|
| 319 |
"""Add a message pair to the history and return the updated history"""
|
|
|
|
| 304 |
# Clear button
|
| 305 |
clear_btn = gr.Button("Clear Conversation")
|
| 306 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 307 |
# HELPER FUNCTIONS
|
| 308 |
def add_message(history, message, response):
|
| 309 |
"""Add a message pair to the history and return the updated history"""
|