nanova commited on
Commit
f22333a
·
1 Parent(s): fd11aed
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -68,11 +68,11 @@ def respond(
68
  print(f"[ERROR] API Error: {r.status_code} - {r.text}")
69
  return "Service error"
70
  json_response = r.json()
71
- print(f"[DEBUG] API Response: {json.dumps(json_response, indent=2)}")
72
  if 'choices' in json_response and len(json_response['choices']) > 0:
73
  response = json_response['choices'][0].get('message', {}).get('content', '')
74
  if response:
75
- return response
76
  return "No response from model"
77
  except Exception as e:
78
  print(f"[ERROR] Request error: {e}")
 
68
  print(f"[ERROR] API Error: {r.status_code} - {r.text}")
69
  return "Service error"
70
  json_response = r.json()
71
+ # print(f"[DEBUG] API Response: {json.dumps(json_response, indent=2)}")
72
  if 'choices' in json_response and len(json_response['choices']) > 0:
73
  response = json_response['choices'][0].get('message', {}).get('content', '')
74
  if response:
75
+ return "hello"
76
  return "No response from model"
77
  except Exception as e:
78
  print(f"[ERROR] Request error: {e}")