Spaces:
Running
Running
fix bug
Browse files- app.py +9 -9
- requirements.txt +2 -1
app.py
CHANGED
@@ -146,15 +146,15 @@ ppt.save("output.pptx")
|
|
146 |
subprocess.run(["python", code_file], capture_output=True, text=True, check=True)
|
147 |
|
148 |
# Convert the pptx to jpg for preview
|
149 |
-
preview_image = "image_previews/output.jpg"
|
150 |
-
command = [
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
]
|
157 |
-
subprocess.run(command)
|
158 |
|
159 |
return "Default slide generated after 3 attempts failed.", pptx_path
|
160 |
|
|
|
146 |
subprocess.run(["python", code_file], capture_output=True, text=True, check=True)
|
147 |
|
148 |
# Convert the pptx to jpg for preview
|
149 |
+
# preview_image = "image_previews/output.jpg"
|
150 |
+
# command = [
|
151 |
+
# "libreoffice",
|
152 |
+
# "--headless",
|
153 |
+
# "--convert-to", "jpg",
|
154 |
+
# "--outdir", "image_previews",
|
155 |
+
# pptx_path
|
156 |
+
# ]
|
157 |
+
# subprocess.run(command)
|
158 |
|
159 |
return "Default slide generated after 3 attempts failed.", pptx_path
|
160 |
|
requirements.txt
CHANGED
@@ -4,4 +4,5 @@ openai
|
|
4 |
python-pptx
|
5 |
numpy
|
6 |
colormath
|
7 |
-
scipy
|
|
|
|
4 |
python-pptx
|
5 |
numpy
|
6 |
colormath
|
7 |
+
scipy
|
8 |
+
matplotlib
|