Spaces:
Sleeping
Sleeping
TrishanuDas
commited on
Commit
·
84e20b2
1
Parent(s):
0066910
minor fixes
Browse files- app.py +1 -1
- app_with_fastapi.py +1 -1
app.py
CHANGED
@@ -19,6 +19,6 @@ if uploaded_file is not None:
|
|
19 |
predicted_class = model.predict(image)
|
20 |
|
21 |
if predicted_class is not None:
|
22 |
-
st.header(f"Predicted
|
23 |
else:
|
24 |
st.error("Error processing image. Please try again!")
|
|
|
19 |
predicted_class = model.predict(image)
|
20 |
|
21 |
if predicted_class is not None:
|
22 |
+
st.header(f"Predicted class: {predicted_class}")
|
23 |
else:
|
24 |
st.error("Error processing image. Please try again!")
|
app_with_fastapi.py
CHANGED
@@ -18,7 +18,7 @@ if uploaded_file is not None:
|
|
18 |
|
19 |
if response.status_code == 200:
|
20 |
result = response.json()
|
21 |
-
st.header(f"Predicted
|
22 |
else:
|
23 |
st.error("Error processing image. Please try again.")
|
24 |
|
|
|
18 |
|
19 |
if response.status_code == 200:
|
20 |
result = response.json()
|
21 |
+
st.header(f"Predicted class: {result['predicted_class']}")
|
22 |
else:
|
23 |
st.error("Error processing image. Please try again.")
|
24 |
|