Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ with gr.Blocks() as demo:
|
|
| 47 |
chat_histories[chat_name] = chat_history
|
| 48 |
chat_names = "\n".join(chat_histories.keys())
|
| 49 |
print(chat_names.split("\n"))
|
| 50 |
-
new_choices = gr.Dropdown
|
| 51 |
return str(chat_names),[[None,"Hi there, what brings you here today?"]],"input.wav",new_choices
|
| 52 |
|
| 53 |
def load_chat(entered_chat_name):
|
|
|
|
| 47 |
chat_histories[chat_name] = chat_history
|
| 48 |
chat_names = "\n".join(chat_histories.keys())
|
| 49 |
print(chat_names.split("\n"))
|
| 50 |
+
new_choices = gr.Dropdown(choices = chat_names.split("\n"),label = "just Select to load chat")
|
| 51 |
return str(chat_names),[[None,"Hi there, what brings you here today?"]],"input.wav",new_choices
|
| 52 |
|
| 53 |
def load_chat(entered_chat_name):
|