Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def generate_response(user_message, cid, history=None):
|
|
| 17 |
|
| 18 |
if history is None:
|
| 19 |
history = []
|
| 20 |
-
if cid == "":
|
| 21 |
cid = str(uuid.uuid4())
|
| 22 |
|
| 23 |
history.append(user_message)
|
|
@@ -120,6 +120,7 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
|
|
| 120 |
cache_examples=False,
|
| 121 |
fn=trigger_example,
|
| 122 |
outputs=[chatbot],
|
|
|
|
| 123 |
)
|
| 124 |
|
| 125 |
if __name__ == "__main__":
|
|
|
|
| 17 |
|
| 18 |
if history is None:
|
| 19 |
history = []
|
| 20 |
+
if cid == "" or None:
|
| 21 |
cid = str(uuid.uuid4())
|
| 22 |
|
| 23 |
history.append(user_message)
|
|
|
|
| 120 |
cache_examples=False,
|
| 121 |
fn=trigger_example,
|
| 122 |
outputs=[chatbot],
|
| 123 |
+
examples_per_page=100
|
| 124 |
)
|
| 125 |
|
| 126 |
if __name__ == "__main__":
|