Spaces:
Sleeping
Sleeping
add update_scenario
Browse files
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")
|