Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,4 @@
|
|
| 1 |
-
Based on this new information, the issue is even clearer! The `google-generativeai` library has breaking changes that route requests to Vertex AI incorrectly. The solution is to migrate to the new `google-genai` SDK.
|
| 2 |
|
| 3 |
-
Here's your code completely rewritten using the **new official `google-genai` SDK**:
|
| 4 |
-
|
| 5 |
-
```python
|
| 6 |
import os
|
| 7 |
import re
|
| 8 |
import json
|
|
|
|
|
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
| 2 |
import os
|
| 3 |
import re
|
| 4 |
import json
|