Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def create_query(history, question):
|
|
| 97 |
import urllib.parse
|
| 98 |
import os
|
| 99 |
|
| 100 |
-
os.environ["
|
| 101 |
|
| 102 |
|
| 103 |
def get_url(url):
|
|
@@ -206,7 +206,7 @@ def google_search(query):
|
|
| 206 |
import os
|
| 207 |
import google.generativeai as genai
|
| 208 |
|
| 209 |
-
genai.configure(api_key=os.environ["
|
| 210 |
|
| 211 |
# Create the model
|
| 212 |
generation_config = {
|
|
|
|
| 97 |
import urllib.parse
|
| 98 |
import os
|
| 99 |
|
| 100 |
+
os.environ["GOOGLE_API_KEY"] = GOOGLE_API_KEY
|
| 101 |
|
| 102 |
|
| 103 |
def get_url(url):
|
|
|
|
| 206 |
import os
|
| 207 |
import google.generativeai as genai
|
| 208 |
|
| 209 |
+
genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
|
| 210 |
|
| 211 |
# Create the model
|
| 212 |
generation_config = {
|