Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -378,30 +378,21 @@ def search_glossary(query):
|
|
378 |
|
379 |
|
380 |
# ✅ Persist AI Results to Markdown Files
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
st.markdown(f"✅ File saved as: `{filename}`")
|
397 |
-
#except:
|
398 |
-
# st.markdown('3 error')
|
399 |
-
#try:
|
400 |
-
filename = gen_AI_IO_filename(display_query, response2[1])
|
401 |
-
create_file(filename, query, response2[1])
|
402 |
-
st.markdown(f"✅ File saved as: `{filename}`")
|
403 |
-
#except:
|
404 |
-
# st.markdown('4 error')
|
405 |
|
406 |
return result, result2, response2
|
407 |
|
|
|
378 |
|
379 |
|
380 |
# ✅ Persist AI Results to Markdown Files
|
381 |
+
filename = gen_AI_IO_filename(display_query, result)
|
382 |
+
create_file(filename, query, result)
|
383 |
+
st.markdown(f"✅ File saved as: `{filename}`")
|
384 |
+
|
385 |
+
filename = gen_AI_IO_filename(display_query, result2)
|
386 |
+
create_file(filename, query, result2)
|
387 |
+
st.markdown(f"✅ File saved as: `{filename}`")
|
388 |
+
|
389 |
+
filename = gen_AI_IO_filename(display_query, response2[0])
|
390 |
+
create_file(filename, query, response2[0])
|
391 |
+
st.markdown(f"✅ File saved as: `{filename}`")
|
392 |
+
|
393 |
+
filename = gen_AI_IO_filename(display_query, response2[1])
|
394 |
+
create_file(filename, query, response2[1])
|
395 |
+
st.markdown(f"✅ File saved as: `{filename}`")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
|
397 |
return result, result2, response2
|
398 |
|