Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -353,8 +353,14 @@ examples = [
|
|
353 |
"The Environmental Impact",
|
354 |
],
|
355 |
]
|
356 |
-
|
357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
|
359 |
def launch_interface():
|
360 |
gr.ChatInterface(
|
@@ -363,6 +369,8 @@ def launch_interface():
|
|
363 |
title="Mixtral 46.7B\nMicro-Agent\nInternet Search <br> development test",
|
364 |
examples=examples,
|
365 |
concurrency_limit=20,
|
|
|
|
|
366 |
).launch(show_api=False)
|
367 |
|
368 |
launch_interface()
|
|
|
353 |
"The Environmental Impact",
|
354 |
],
|
355 |
]
|
356 |
+
|
357 |
+
def launch_interface():
|
358 |
+
gr.ChatInterface(
|
359 |
+
fn=chat_interface,
|
360 |
+
examples=examples,
|
361 |
+
max_length=512,
|
362 |
+
truncation=True,
|
363 |
+
truncation_strategy="longest_first",
|
364 |
|
365 |
def launch_interface():
|
366 |
gr.ChatInterface(
|
|
|
369 |
title="Mixtral 46.7B\nMicro-Agent\nInternet Search <br> development test",
|
370 |
examples=examples,
|
371 |
concurrency_limit=20,
|
372 |
+
truncation=True,
|
373 |
+
truncation_strategy="longest_first",
|
374 |
).launch(show_api=False)
|
375 |
|
376 |
launch_interface()
|