Spaces:
Runtime error
Runtime error
Create space.yaml
Browse files- space.yaml +15 -0
space.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# space.yaml
|
2 |
+
|
3 |
+
sdk: gradio # Using Gradio as the framework
|
4 |
+
runtime: python # Specify Python environment
|
5 |
+
python_version: 3.9 # Choose Python version
|
6 |
+
|
7 |
+
# Install required system dependencies (e.g., LibreOffice for document processing)
|
8 |
+
system_packages:
|
9 |
+
- libreoffice
|
10 |
+
- poppler-utils # Required for PDF support
|
11 |
+
- tesseract-ocr # If OCR is needed
|
12 |
+
- ghostscript # PDF rendering support
|
13 |
+
|
14 |
+
# Automatically restart the app when files change
|
15 |
+
restart_on_file_change: true
|