Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,5 +109,5 @@ if uploaded_file is not None:
|
|
| 109 |
ai_description = response.choices[0].message.content
|
| 110 |
st.subheader("📝 AI-Generated Defect Description")
|
| 111 |
st.text_area("Output", value=ai_description.strip(), height=250)
|
| 112 |
-
|
| 113 |
-
|
|
|
|
| 109 |
ai_description = response.choices[0].message.content
|
| 110 |
st.subheader("📝 AI-Generated Defect Description")
|
| 111 |
st.text_area("Output", value=ai_description.strip(), height=250)
|
| 112 |
+
except Exception as e:
|
| 113 |
+
st.error(f"❌ An error occurred while generating the description:\n{e}")
|