Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -160,7 +160,7 @@ def download_chats(selected_chats):
|
|
| 160 |
# Diese Funktion bereitet die ausgewählten Chats zum Download vor
|
| 161 |
data = "\n\n".join(chats[chat] for chat in selected_chats)
|
| 162 |
# Dateipfad festlegen (hier wird die Datei im aktuellen Verzeichnis gespeichert)
|
| 163 |
-
file_path = '
|
| 164 |
|
| 165 |
# Datei im Schreibmodus öffnen (erstellt die Datei, wenn sie nicht existiert)
|
| 166 |
with open(file_path, 'w') as file:
|
|
@@ -546,7 +546,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 546 |
with gr.Column():
|
| 547 |
with gr.Column(min_width=50, scale=1):
|
| 548 |
with gr.Tab(label="Chats ..."):
|
| 549 |
-
chat_selector = gr.CheckboxGroup(
|
| 550 |
download_button = gr.Button("Download ausgewählte Chats")
|
| 551 |
file_download = gr.File(label="Download-Chat", visible=False)
|
| 552 |
with gr.Tab(label="Parameter Einstellung"):
|
|
|
|
| 160 |
# Diese Funktion bereitet die ausgewählten Chats zum Download vor
|
| 161 |
data = "\n\n".join(chats[chat] for chat in selected_chats)
|
| 162 |
# Dateipfad festlegen (hier wird die Datei im aktuellen Verzeichnis gespeichert)
|
| 163 |
+
file_path = 'data/chatverlauf.txt'
|
| 164 |
|
| 165 |
# Datei im Schreibmodus öffnen (erstellt die Datei, wenn sie nicht existiert)
|
| 166 |
with open(file_path, 'w') as file:
|
|
|
|
| 546 |
with gr.Column():
|
| 547 |
with gr.Column(min_width=50, scale=1):
|
| 548 |
with gr.Tab(label="Chats ..."):
|
| 549 |
+
chat_selector = gr.CheckboxGroup( choices=update_chat_options())
|
| 550 |
download_button = gr.Button("Download ausgewählte Chats")
|
| 551 |
file_download = gr.File(label="Download-Chat", visible=False)
|
| 552 |
with gr.Tab(label="Parameter Einstellung"):
|