spagestic commited on
Commit
57d77b7
·
1 Parent(s): 19033cb

feat: Load environment variables at the start of the application

Browse files
Files changed (1) hide show
  1. _app.py +3 -0
_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."""