Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -182,6 +182,13 @@ def save_markdown_to_word(markdown_text, name, file_name):
|
|
| 182 |
doc.save(file_name)
|
| 183 |
print(f"Markdown content saved to {file_name}")
|
| 184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
def main_interface(uploaded_files, name, number_of_sections, difficulty_level, *args):
|
| 186 |
sections = []
|
| 187 |
|
|
|
|
| 182 |
doc.save(file_name)
|
| 183 |
print(f"Markdown content saved to {file_name}")
|
| 184 |
|
| 185 |
+
# Save the document to an in-memory BytesIO object
|
| 186 |
+
# doc_stream = BytesIO()
|
| 187 |
+
# doc.save(doc_stream)
|
| 188 |
+
# doc_stream.seek(0) # Move the stream position to the start
|
| 189 |
+
|
| 190 |
+
return file_name
|
| 191 |
+
|
| 192 |
def main_interface(uploaded_files, name, number_of_sections, difficulty_level, *args):
|
| 193 |
sections = []
|
| 194 |
|