Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
from markitdown import MarkItDown
|
3 |
import google.generativeai as genai
|
@@ -10,7 +11,7 @@ md = MarkItDown()
|
|
10 |
|
11 |
# Configure Gemini AI
|
12 |
genai.configure(api_key=os.getenv('GEMINI_KEY'))
|
13 |
-
model = genai.GenerativeModel('gemini-
|
14 |
|
15 |
def process_with_markitdown(input_path):
|
16 |
"""Process file or URL with MarkItDown and return text content"""
|
|
|
1 |
+
|
2 |
import gradio as gr
|
3 |
from markitdown import MarkItDown
|
4 |
import google.generativeai as genai
|
|
|
11 |
|
12 |
# Configure Gemini AI
|
13 |
genai.configure(api_key=os.getenv('GEMINI_KEY'))
|
14 |
+
model = genai.GenerativeModel('gemini-2.0-flash-exp')
|
15 |
|
16 |
def process_with_markitdown(input_path):
|
17 |
"""Process file or URL with MarkItDown and return text content"""
|