Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ google_api_key = os.getenv('google_search')
|
|
72 |
#API_URL = "https://blavken-flowiseblav.hf.space/api/v1/prediction/fbc118dc-ec00-4b59-acff-600648958be3"
|
73 |
|
74 |
def query(payload):
|
75 |
-
API_URL = f"https://www.
|
76 |
try:
|
77 |
response = requests.get(API_URL)
|
78 |
response.raise_for_status() # Raises HTTPError for bad responses
|
|
|
72 |
#API_URL = "https://blavken-flowiseblav.hf.space/api/v1/prediction/fbc118dc-ec00-4b59-acff-600648958be3"
|
73 |
|
74 |
def query(payload):
|
75 |
+
API_URL = f"https://www.google.com/search?q={payload}"
|
76 |
try:
|
77 |
response = requests.get(API_URL)
|
78 |
response.raise_for_status() # Raises HTTPError for bad responses
|