Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,6 @@ def run_gpt(
|
|
61 |
max_new_tokens=1048,
|
62 |
top_p=0.99,
|
63 |
repetition_penalty=1.0,
|
64 |
-
num_beams=4,
|
65 |
do_sample=True,
|
66 |
seed=seed,
|
67 |
)
|
@@ -362,9 +361,11 @@ def run(purpose,hist):
|
|
362 |
action_name,
|
363 |
action_input,
|
364 |
)
|
365 |
-
yield ("",
|
|
|
366 |
if task == "END":
|
367 |
-
return ("",
|
|
|
368 |
|
369 |
|
370 |
|
@@ -494,7 +495,7 @@ with gr.Blocks() as ifacea:
|
|
494 |
ifacea.launch()
|
495 |
).launch()
|
496 |
|
497 |
-
|
498 |
with gr.Blocks() as iface:
|
499 |
#chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
500 |
chatbot=gr.Chatbot()
|
@@ -513,4 +514,4 @@ gr.ChatInterface(
|
|
513 |
examples=examples,
|
514 |
concurrency_limit=20,
|
515 |
).launch(show_api=False)
|
516 |
-
|
|
|
61 |
max_new_tokens=1048,
|
62 |
top_p=0.99,
|
63 |
repetition_penalty=1.0,
|
|
|
64 |
do_sample=True,
|
65 |
seed=seed,
|
66 |
)
|
|
|
361 |
action_name,
|
362 |
action_input,
|
363 |
)
|
364 |
+
yield ("", history)
|
365 |
+
#yield ("",[(purpose,history)])
|
366 |
if task == "END":
|
367 |
+
return ("", history)
|
368 |
+
#return ("", [(purpose,history)])
|
369 |
|
370 |
|
371 |
|
|
|
495 |
ifacea.launch()
|
496 |
).launch()
|
497 |
|
498 |
+
|
499 |
with gr.Blocks() as iface:
|
500 |
#chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
501 |
chatbot=gr.Chatbot()
|
|
|
514 |
examples=examples,
|
515 |
concurrency_limit=20,
|
516 |
).launch(show_api=False)
|
517 |
+
|