Update app.py
Browse files
app.py
CHANGED
|
@@ -127,7 +127,7 @@ general_assistant_suche= openai_assistant_suche(client)
|
|
| 127 |
def clear_all(history):
|
| 128 |
global chats
|
| 129 |
dic_history = {schluessel: wert for schluessel, wert in history}
|
| 130 |
-
summary = "\n\n".join(f'{schluessel}: {wert}' for schluessel, wert in dic_history.items())
|
| 131 |
#schlagwort finden zu dem chatverlauf
|
| 132 |
headers, payload = process_chatverlauf(summary, MODEL_NAME, OAI_API_KEY)
|
| 133 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
|
@@ -141,7 +141,7 @@ def clear_all(history):
|
|
| 141 |
#chats ist ein dictionary
|
| 142 |
chats[id_neu]= summary
|
| 143 |
|
| 144 |
-
return None, gr.Image(visible=False), [], gr.CheckboxGroup(label=
|
| 145 |
|
| 146 |
|
| 147 |
#########################################
|
|
|
|
| 127 |
def clear_all(history):
|
| 128 |
global chats
|
| 129 |
dic_history = {schluessel: wert for schluessel, wert in history}
|
| 130 |
+
summary = "\n\n".join(f'{schluessel}: \n {wert}' for schluessel, wert in dic_history.items())
|
| 131 |
#schlagwort finden zu dem chatverlauf
|
| 132 |
headers, payload = process_chatverlauf(summary, MODEL_NAME, OAI_API_KEY)
|
| 133 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
|
|
|
| 141 |
#chats ist ein dictionary
|
| 142 |
chats[id_neu]= summary
|
| 143 |
|
| 144 |
+
return None, gr.Image(visible=False), [], gr.CheckboxGroup(label=None, choices=update_chat_options())
|
| 145 |
|
| 146 |
|
| 147 |
#########################################
|