Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,10 @@ if not GOOGLE_API_KEY:
|
|
| 30 |
st.stop()
|
| 31 |
|
| 32 |
genai.configure(api_key=GOOGLE_API_KEY)
|
| 33 |
-
model = genai.GenerativeModel(
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
# Helper: Extract text from various documents
|
| 36 |
def load_and_extract_text(file_path):
|
|
|
|
| 30 |
st.stop()
|
| 31 |
|
| 32 |
genai.configure(api_key=GOOGLE_API_KEY)
|
| 33 |
+
model = genai.GenerativeModel(
|
| 34 |
+
model_name="gemini-2.0-flash",
|
| 35 |
+
tools=[{"google_search": {}}]
|
| 36 |
+
)
|
| 37 |
|
| 38 |
# Helper: Extract text from various documents
|
| 39 |
def load_and_extract_text(file_path):
|