mgokg commited on
Commit
6c1c62c
·
verified ·
1 Parent(s): 9b68f37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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}