Spaces:
Running
Running
update app
Browse files
app.py
CHANGED
|
@@ -156,10 +156,10 @@ ppt.save("output.pptx")
|
|
| 156 |
]
|
| 157 |
subprocess.run(command)
|
| 158 |
|
| 159 |
-
return "Default slide generated after 3 attempts failed.", pptx_path
|
| 160 |
|
| 161 |
except Exception as e:
|
| 162 |
-
return f"An error occurred: {str(e)}", None
|
| 163 |
finally:
|
| 164 |
# Cleanup temporary files
|
| 165 |
files_before.add("output.pptx")
|
|
|
|
| 156 |
]
|
| 157 |
subprocess.run(command)
|
| 158 |
|
| 159 |
+
return "Default slide generated after 3 attempts failed.", pptx_path
|
| 160 |
|
| 161 |
except Exception as e:
|
| 162 |
+
return f"An error occurred: {str(e)}", None
|
| 163 |
finally:
|
| 164 |
# Cleanup temporary files
|
| 165 |
files_before.add("output.pptx")
|