Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,12 @@ def parse_links(prompt):
|
|
34 |
response = requests.post(url, json=payload, headers=headers)
|
35 |
|
36 |
print(response.json())
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
return response.json()
|
38 |
# Rückgabe als Dictionary, um es mit gr.JSON kompatibel zu machen
|
39 |
#return {"body_text": body_text}
|
|
|
34 |
response = requests.post(url, json=payload, headers=headers)
|
35 |
|
36 |
print(response.json())
|
37 |
+
# Parse the JSON response
|
38 |
+
data = response.json()
|
39 |
+
# Extract the message
|
40 |
+
ergebnis = data.get('message')
|
41 |
+
return ergebnis
|
42 |
+
|
43 |
return response.json()
|
44 |
# Rückgabe als Dictionary, um es mit gr.JSON kompatibel zu machen
|
45 |
#return {"body_text": body_text}
|