Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -107,6 +107,7 @@ repo_id = "HuggingFaceH4/zephyr-7b-alpha" #das Modell ist echt gut!!! Vom MIT
|
|
107 |
|
108 |
#HuggingFace Model name--------------------------------
|
109 |
MODEL_NAME_HF = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
|
|
110 |
MODEL_NAME_OAI_ZEICHNEN = "dall-e-3"
|
111 |
#Alternativ zeichnen: Stabe Diffusion from HF:
|
112 |
#API Inference allgemien: https://api-inference.huggingface.co/models/{model}
|
@@ -175,9 +176,9 @@ def clear_all(history, uploaded_file_paths, chats):
|
|
175 |
result = data['choices'][0]['message']['content']
|
176 |
worte = result.split()
|
177 |
if len(worte) > 2:
|
178 |
-
file_path_download = "data/" + str(len(chats)) + "_Chatverlauf"
|
179 |
else:
|
180 |
-
file_path_download = "data/" + str(len(chats)) + "_" + result
|
181 |
|
182 |
#summary in ein File laden
|
183 |
"""
|
|
|
107 |
|
108 |
#HuggingFace Model name--------------------------------
|
109 |
MODEL_NAME_HF = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
110 |
+
#MODLE_NAME_HF = "abacusai/Smaug-72B-v0.1"
|
111 |
MODEL_NAME_OAI_ZEICHNEN = "dall-e-3"
|
112 |
#Alternativ zeichnen: Stabe Diffusion from HF:
|
113 |
#API Inference allgemien: https://api-inference.huggingface.co/models/{model}
|
|
|
176 |
result = data['choices'][0]['message']['content']
|
177 |
worte = result.split()
|
178 |
if len(worte) > 2:
|
179 |
+
file_path_download = "data/" + str(len(chats)) + "_Chatverlauf.pdf"
|
180 |
else:
|
181 |
+
file_path_download = "data/" + str(len(chats)) + "_" + result + ".pdf"
|
182 |
|
183 |
#summary in ein File laden
|
184 |
"""
|