jedick commited on
Commit
9f5b319
Β·
1 Parent(s): 184a275

More Gradio updates

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +6 -6
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸ‡·πŸ€πŸ’¬
4
  colorFrom: indigo
5
  colorTo: red
6
  sdk: gradio
7
- sdk_version: 5.38.2
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], api_name=False)
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_name=False,
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
- api_name=False,
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
- api_name=False,
489
  )
490
 
491
  chatbot.clear(
@@ -493,7 +493,7 @@ with gr.Blocks(
493
  lambda x: gr.update(value=x),
494
  [input],
495
  [input],
496
- api_name=False,
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",