Spaces:
Sleeping
Sleeping
feat: Load environment variables at the start of the application
Browse files
_app.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio_pdf import PDF
|
| 3 |
from pdf_text_extractor import PDFTextExtractor
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def main():
|
| 6 |
"""Main function to create and launch the interface."""
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio_pdf import PDF
|
| 3 |
from pdf_text_extractor import PDFTextExtractor
|
| 4 |
+
from dotenv import load_dotenv
|
| 5 |
+
|
| 6 |
+
load_dotenv()
|
| 7 |
|
| 8 |
def main():
|
| 9 |
"""Main function to create and launch the interface."""
|