Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def perform_search(prompt):
|
|
42 |
response.raise_for_status() # Wirft eine Exception, wenn die Anfrage fehlschlägt
|
43 |
|
44 |
# JSON-Antwort parsen
|
45 |
-
data = response.
|
46 |
return data
|
47 |
# Extrahiere die Suchergebnisse
|
48 |
items = data.get('items', [])
|
|
|
42 |
response.raise_for_status() # Wirft eine Exception, wenn die Anfrage fehlschlägt
|
43 |
|
44 |
# JSON-Antwort parsen
|
45 |
+
data = response.text()
|
46 |
return data
|
47 |
# Extrahiere die Suchergebnisse
|
48 |
items = data.get('items', [])
|