Update app.py
Browse files
app.py
CHANGED
|
@@ -137,11 +137,11 @@ def clear_all(history):
|
|
| 137 |
result = data['choices'][0]['message']['content']
|
| 138 |
|
| 139 |
#chat hinzufügen zu den chatverläufen und in GUI anzeigen
|
| 140 |
-
id_neu = len(chats)+1 + "_" + result
|
| 141 |
#chats ist ein dictionary
|
| 142 |
chats[id_neu]= summary
|
| 143 |
|
| 144 |
-
return None, gr.Image(visible=False), [], gr.CheckboxGroup(label=
|
| 145 |
|
| 146 |
|
| 147 |
#########################################
|
|
@@ -538,7 +538,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 538 |
with gr.Column():
|
| 539 |
with gr.Column(min_width=50, scale=1):
|
| 540 |
with gr.Tab(label="Chats ..."):
|
| 541 |
-
chat_selector = gr.CheckboxGroup(label=
|
| 542 |
download_button = gr.Button("Download ausgewählte Chats")
|
| 543 |
file_download = gr.File(label="Download-Chat", visible=False)
|
| 544 |
with gr.Tab(label="Parameter Einstellung"):
|
|
|
|
| 137 |
result = data['choices'][0]['message']['content']
|
| 138 |
|
| 139 |
#chat hinzufügen zu den chatverläufen und in GUI anzeigen
|
| 140 |
+
id_neu = str(len(chats)+1) + "_" + result
|
| 141 |
#chats ist ein dictionary
|
| 142 |
chats[id_neu]= summary
|
| 143 |
|
| 144 |
+
return None, gr.Image(visible=False), [], gr.CheckboxGroup(label="", choices=update_chat_options())
|
| 145 |
|
| 146 |
|
| 147 |
#########################################
|
|
|
|
| 538 |
with gr.Column():
|
| 539 |
with gr.Column(min_width=50, scale=1):
|
| 540 |
with gr.Tab(label="Chats ..."):
|
| 541 |
+
chat_selector = gr.CheckboxGroup(label="", choices=update_chat_options())
|
| 542 |
download_button = gr.Button("Download ausgewählte Chats")
|
| 543 |
file_download = gr.File(label="Download-Chat", visible=False)
|
| 544 |
with gr.Tab(label="Parameter Einstellung"):
|