Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from pathlib import Path
|
|
| 9 |
md = MarkItDown()
|
| 10 |
|
| 11 |
# Configure Gemini AI
|
| 12 |
-
genai.configure(api_key='
|
| 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)
|