John Liao commited on
Commit
962b14c
·
verified ·
1 Parent(s): d83632f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  from pptx import Presentation
2
  import openai
3
 
 
1
+ import subprocess
2
+ import sys
3
+
4
+ try:
5
+ import pptx
6
+ except ImportError:
7
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "python-pptx"])
8
+ import pptx # Import the library after installing it
9
+
10
  from pptx import Presentation
11
  import openai
12