Spaces:
Running
Running
Commit ·
8f0749d
1
Parent(s): 537a093
3.67+
Browse files
app.py
CHANGED
|
@@ -769,13 +769,14 @@ def process_file(uploaded_file, model_choice, translation_method=None):
|
|
| 769 |
# Handle stopped processing
|
| 770 |
if st.session_state.control.is_stopped() and len(df) > 0:
|
| 771 |
st.warning("Обработку остановили. Показываю частичные результаты.")
|
| 772 |
-
|
| 773 |
-
|
| 774 |
st.download_button(
|
| 775 |
label="📊 Скачать частичный результат",
|
| 776 |
data=output,
|
| 777 |
file_name="partial_analysis.xlsx",
|
| 778 |
-
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
|
|
| 779 |
)
|
| 780 |
|
| 781 |
return df
|
|
|
|
| 769 |
# Handle stopped processing
|
| 770 |
if st.session_state.control.is_stopped() and len(df) > 0:
|
| 771 |
st.warning("Обработку остановили. Показываю частичные результаты.")
|
| 772 |
+
output = create_output_file(df, uploaded_file, llm)
|
| 773 |
+
if output is not None:
|
| 774 |
st.download_button(
|
| 775 |
label="📊 Скачать частичный результат",
|
| 776 |
data=output,
|
| 777 |
file_name="partial_analysis.xlsx",
|
| 778 |
+
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
| 779 |
+
key="partial_download"
|
| 780 |
)
|
| 781 |
|
| 782 |
return df
|