gnumanth commited on
Commit
155926c
·
verified ·
1 Parent(s): 929f24d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ from pathlib import Path
9
  md = MarkItDown()
10
 
11
  # Configure Gemini AI
12
- genai.configure(api_key='AIzaSyBKnIWXodhUTBfJew5NuMgow0OhrR2ugvQ',transport="rest")
13
  model = genai.GenerativeModel('gemini-2.0-flash-exp')
14
 
15
  def process_with_markitdown(input_path):
@@ -196,4 +196,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
196
  )
197
 
198
  if __name__ == "__main__":
199
- iface.launch()
 
9
  md = MarkItDown()
10
 
11
  # Configure Gemini AI
12
+ genai.configure(api_key=os.getenv('GEMINI_KEY'))
13
  model = genai.GenerativeModel('gemini-2.0-flash-exp')
14
 
15
  def process_with_markitdown(input_path):
 
196
  )
197
 
198
  if __name__ == "__main__":
199
+ iface.launch(True)