mlbench123 commited on
Commit
220844e
·
verified ·
1 Parent(s): a715a85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ import traceback
12
  # ==============================================================
13
  # API Configuration - Add your key here
14
  # ==============================================================
15
- GEMINI_API_KEY = "AIzaSyCy6GoBR724Hj9VyuW3hKM4N0P6liBOlDo" # Replace with your key
16
 
17
  # ==============================================================
18
  # Enhanced extraction prompt with better instructions
@@ -152,7 +152,7 @@ def process_files_for_gemini(files: List[str]) -> Dict[str, Any]:
152
  return processed_data
153
 
154
 
155
- def extract_with_gemini(processed_data: Dict[str, Any], api_key: str, model_name: str = "gemini-2.0-flash-exp") -> Dict[str, Any]:
156
  """Extract structured data using Gemini with enhanced multimodal processing"""
157
 
158
  if not api_key or api_key.strip() == "":
 
12
  # ==============================================================
13
  # API Configuration - Add your key here
14
  # ==============================================================
15
+ GEMINI_API_KEY = "AIzaSyDgNzVud08vXVrvFb5Mz0bHX8vBQ1LihNs" # Replace with your key
16
 
17
  # ==============================================================
18
  # Enhanced extraction prompt with better instructions
 
152
  return processed_data
153
 
154
 
155
+ def extract_with_gemini(processed_data: Dict[str, Any], api_key: str, model_name: str = "gemini-2.0-flash") -> Dict[str, Any]:
156
  """Extract structured data using Gemini with enhanced multimodal processing"""
157
 
158
  if not api_key or api_key.strip() == "":