Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,18 +9,7 @@ import os
|
|
| 9 |
|
| 10 |
def main():
|
| 11 |
|
| 12 |
-
|
| 13 |
-
if sys.platform.startswith('linux'):
|
| 14 |
-
# Install Poppler on Linux
|
| 15 |
-
subprocess.run(['sudo', 'apt-get', 'update'], check=True)
|
| 16 |
-
subprocess.run(['sudo', 'apt-get', 'install', '-y', 'poppler-utils'], check=True)
|
| 17 |
-
elif sys.platform == 'darwin':
|
| 18 |
-
# Install Poppler on macOS
|
| 19 |
-
subprocess.run(['brew', 'install', 'poppler'], check=True)
|
| 20 |
-
else:
|
| 21 |
-
print("Unsupported OS. Please install Poppler manually.")
|
| 22 |
-
except subprocess.CalledProcessError as e:
|
| 23 |
-
print(f"Error occurred during installation: {e}")
|
| 24 |
|
| 25 |
st.title("CV to JSON Converter")
|
| 26 |
|
|
|
|
| 9 |
|
| 10 |
def main():
|
| 11 |
|
| 12 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
st.title("CV to JSON Converter")
|
| 15 |
|