Natwar commited on
Commit
2f7e39e
·
verified ·
1 Parent(s): bdba181

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -1,3 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import pandas as pd
3
  import tempfile
 
1
+ import subprocess
2
+ import sys
3
+
4
+ # Install openpyxl if not available
5
+ try:
6
+ import openpyxl
7
+ except ImportError:
8
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "openpyxl"])
9
+ import openpyxl
10
+
11
+
12
+
13
  import gradio as gr
14
  import pandas as pd
15
  import tempfile