ONEROCKS commited on
Commit
952f163
·
verified ·
1 Parent(s): 5b3b74c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -14
app.py CHANGED
@@ -394,6 +394,18 @@ def create_chatbot():
394
  export_button = gr.Button("Export Chat")
395
  download_output = gr.File(label="Download Chat History", visible=False)
396
 
 
 
 
 
 
 
 
 
 
 
 
 
397
  def handle_export(history):
398
  file_path = export_chat(history)
399
  return gr.update(value=file_path, visible=True)
@@ -477,20 +489,6 @@ window.addEventListener("beforeunload", async function (e) {
477
 
478
  with gr.Tab("Settings"):
479
  gr.Markdown("## App Settings")
480
-
481
- with gr.Row():
482
- role = gr.Dropdown(
483
- choices=[
484
- "All rounder", "Academic Tutor", "Fitness Coach", "Writing Assistant",
485
- "Meme Generator AI", "Relationship Advisor", "Coding Mentor",
486
- "Personal Assistant", "Startup Advisor", "Therapist Buddy"
487
- ],
488
- show_label=False,
489
- value="All rounder",
490
- interactive=True
491
- )
492
-
493
-
494
  autosave_toggle = gr.Checkbox(label="Auto-save chat on exit", value=True)
495
 
496
  save_folder = gr.Textbox(label="Chat Save Directory", value="history", interactive=False)
 
394
  export_button = gr.Button("Export Chat")
395
  download_output = gr.File(label="Download Chat History", visible=False)
396
 
397
+ with gr.Row():
398
+ role = gr.Dropdown(
399
+ choices=[
400
+ "All rounder", "Academic Tutor", "Fitness Coach", "Writing Assistant",
401
+ "Meme Generator AI", "Relationship Advisor", "Coding Mentor",
402
+ "Personal Assistant", "Startup Advisor", "Therapist Buddy"
403
+ ],
404
+ show_label=False,
405
+ value="All rounder",
406
+ interactive=True
407
+ )
408
+
409
  def handle_export(history):
410
  file_path = export_chat(history)
411
  return gr.update(value=file_path, visible=True)
 
489
 
490
  with gr.Tab("Settings"):
491
  gr.Markdown("## App Settings")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
492
  autosave_toggle = gr.Checkbox(label="Auto-save chat on exit", value=True)
493
 
494
  save_folder = gr.Textbox(label="Chat Save Directory", value="history", interactive=False)