Shakir60 commited on
Commit
fe4d9aa
·
verified ·
1 Parent(s): 116c918

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -275,8 +275,8 @@ def get_groq_response(query: str, context: str) -> str:
275
  )
276
  return response.choices[0].message.content
277
  except Exception as e:
278
- logger.error(f"Groq API error: {e}")
279
- return f"Error: Unable to get response from AI model. Please try again."
280
 
281
  def main():
282
  st.set_page_config(
 
275
  )
276
  return response.choices[0].message.content
277
  except Exception as e:
278
+ logger.error(f"Groq API error: {e}", exc_info=True)
279
+ return f"Error: Unable to get response from AI model. Exception: {str(e)}"
280
 
281
  def main():
282
  st.set_page_config(