Spaces:
Running
Running
jedick commited on
Commit Β·
9f5b319
1
Parent(s): 184a275
More Gradio updates
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: π·π€π¬
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
|
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.2.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
app.py
CHANGED
|
@@ -462,14 +462,14 @@ with gr.Blocks(
|
|
| 462 |
|
| 463 |
# Start a new thread when the user presses the clear (trash) button
|
| 464 |
# https://github.com/gradio-app/gradio/issues/9722
|
| 465 |
-
chatbot.clear(generate_thread_id, outputs=[thread_id],
|
| 466 |
|
| 467 |
input.submit(
|
| 468 |
# Submit input to the chatbot
|
| 469 |
to_workflow,
|
| 470 |
[input, chatbot, thread_id],
|
| 471 |
[chatbot, retrieved_emails, citations_text],
|
| 472 |
-
|
| 473 |
)
|
| 474 |
|
| 475 |
retrieved_emails.change(
|
|
@@ -477,7 +477,7 @@ with gr.Blocks(
|
|
| 477 |
update_textbox,
|
| 478 |
[retrieved_emails, emails_textbox],
|
| 479 |
[emails_textbox, emails_textbox],
|
| 480 |
-
|
| 481 |
)
|
| 482 |
|
| 483 |
citations_text.change(
|
|
@@ -485,7 +485,7 @@ with gr.Blocks(
|
|
| 485 |
update_textbox,
|
| 486 |
[citations_text, citations_textbox],
|
| 487 |
[citations_textbox, citations_textbox],
|
| 488 |
-
|
| 489 |
)
|
| 490 |
|
| 491 |
chatbot.clear(
|
|
@@ -493,7 +493,7 @@ with gr.Blocks(
|
|
| 493 |
lambda x: gr.update(value=x),
|
| 494 |
[input],
|
| 495 |
[input],
|
| 496 |
-
|
| 497 |
)
|
| 498 |
|
| 499 |
# Clean up graph instances when page is closed/refreshed
|
|
@@ -506,7 +506,7 @@ if __name__ == "__main__":
|
|
| 506 |
current_directory = os.getcwd()
|
| 507 |
allowed_paths = [current_directory + "/images"]
|
| 508 |
# Noto Color Emoji gets a nice-looking Unicode Character βπ·β (U+1F1F7) on Chrome
|
| 509 |
-
theme=gr.themes.Soft(
|
| 510 |
font=[
|
| 511 |
"ui-sans-serif",
|
| 512 |
"system-ui",
|
|
|
|
| 462 |
|
| 463 |
# Start a new thread when the user presses the clear (trash) button
|
| 464 |
# https://github.com/gradio-app/gradio/issues/9722
|
| 465 |
+
chatbot.clear(generate_thread_id, outputs=[thread_id], api_visibility="private")
|
| 466 |
|
| 467 |
input.submit(
|
| 468 |
# Submit input to the chatbot
|
| 469 |
to_workflow,
|
| 470 |
[input, chatbot, thread_id],
|
| 471 |
[chatbot, retrieved_emails, citations_text],
|
| 472 |
+
api_visibility="private",
|
| 473 |
)
|
| 474 |
|
| 475 |
retrieved_emails.change(
|
|
|
|
| 477 |
update_textbox,
|
| 478 |
[retrieved_emails, emails_textbox],
|
| 479 |
[emails_textbox, emails_textbox],
|
| 480 |
+
api_visibility="private",
|
| 481 |
)
|
| 482 |
|
| 483 |
citations_text.change(
|
|
|
|
| 485 |
update_textbox,
|
| 486 |
[citations_text, citations_textbox],
|
| 487 |
[citations_textbox, citations_textbox],
|
| 488 |
+
api_visibility="private",
|
| 489 |
)
|
| 490 |
|
| 491 |
chatbot.clear(
|
|
|
|
| 493 |
lambda x: gr.update(value=x),
|
| 494 |
[input],
|
| 495 |
[input],
|
| 496 |
+
api_visibility="private",
|
| 497 |
)
|
| 498 |
|
| 499 |
# Clean up graph instances when page is closed/refreshed
|
|
|
|
| 506 |
current_directory = os.getcwd()
|
| 507 |
allowed_paths = [current_directory + "/images"]
|
| 508 |
# Noto Color Emoji gets a nice-looking Unicode Character βπ·β (U+1F1F7) on Chrome
|
| 509 |
+
theme = gr.themes.Soft(
|
| 510 |
font=[
|
| 511 |
"ui-sans-serif",
|
| 512 |
"system-ui",
|