adil9858 commited on
Commit
54d32e1
·
verified ·
1 Parent(s): f97dea6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def get_api_response(base64_img):
42
  if response.status_code == 200:
43
  return response.json()['choices'][0]['message']['content']
44
  else:
45
- return "Error: Unable to get response from API."
46
 
47
  # Streamlit interface
48
  def main():
 
42
  if response.status_code == 200:
43
  return response.json()['choices'][0]['message']['content']
44
  else:
45
+ return f"Error: Unable to get response from API {response.status_code}."
46
 
47
  # Streamlit interface
48
  def main():