finalwind commited on
Commit
c290437
·
verified ·
1 Parent(s): b9b76ed

add update_scenario

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -123,6 +123,9 @@ def end_conversation(history):
123
  history.append((None, "Perwakilan penjualan telah mengakhiri percakapan."))
124
  return history, history, "", summary_feedback
125
 
 
 
 
126
  # Set up Gradio interface
127
  with gr.Blocks() as demo:
128
  gr.Markdown("# Simulator Pelatihan Penjualan Ritel")
 
123
  history.append((None, "Perwakilan penjualan telah mengakhiri percakapan."))
124
  return history, history, "", summary_feedback
125
 
126
+ def update_scenario(choice):
127
+ return predefined_scenarios[choice]
128
+
129
  # Set up Gradio interface
130
  with gr.Blocks() as demo:
131
  gr.Markdown("# Simulator Pelatihan Penjualan Ritel")