Spaces:
Runtime error
Runtime error
Commit
·
28026f6
1
Parent(s):
a00ebef
test new logs func
Browse files
app.py
CHANGED
@@ -700,17 +700,19 @@ with gr.Blocks() as demo:
|
|
700 |
scale= 1,
|
701 |
interactive=False,
|
702 |
autoplay= True)
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
# logs = gr.Textbox()
|
708 |
-
|
|
|
709 |
# upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
710 |
inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot])
|
711 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
712 |
agentchoice.change(SetAgent, agentchoice, None)
|
713 |
-
|
|
|
714 |
|
715 |
|
716 |
|
|
|
700 |
scale= 1,
|
701 |
interactive=False,
|
702 |
autoplay= True)
|
703 |
+
with gr.Accordion(
|
704 |
+
label = "LOGS",
|
705 |
+
open = False,
|
706 |
+
):
|
707 |
# logs = gr.Textbox()
|
708 |
+
frash_logs = gr.Button("Update Logs ...")
|
709 |
+
logs = gr.Textbox()
|
710 |
# upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
711 |
inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot])
|
712 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
713 |
agentchoice.change(SetAgent, agentchoice, None)
|
714 |
+
frash_logs.click(read_logs, None, logs)
|
715 |
+
# demo.load(read_logs, None, logs, every=1)
|
716 |
|
717 |
|
718 |
|