Update app.py
Browse files
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.
|
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(
|