Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ from PIL import Image, ImageOps
|
|
| 5 |
import google.generativeai as genai
|
| 6 |
from markdown import markdown
|
| 7 |
import streamlit as st
|
| 8 |
-
from PIL import Image
|
| 9 |
import numpy as np
|
| 10 |
from tensorflow.keras.models import load_model # type: ignore
|
| 11 |
|
|
@@ -72,7 +71,7 @@ if uploaded_file is not None or photo is not None:
|
|
| 72 |
confidence_score = prediction[0][index]
|
| 73 |
|
| 74 |
st.write("Độ Chính Xác")
|
| 75 |
-
st.write('`' + confidence_score + '`')
|
| 76 |
|
| 77 |
st.write("`ID: " + str(index) + "`")
|
| 78 |
st.write("## Tên: " + class_name)
|
|
|
|
| 5 |
import google.generativeai as genai
|
| 6 |
from markdown import markdown
|
| 7 |
import streamlit as st
|
|
|
|
| 8 |
import numpy as np
|
| 9 |
from tensorflow.keras.models import load_model # type: ignore
|
| 10 |
|
|
|
|
| 71 |
confidence_score = prediction[0][index]
|
| 72 |
|
| 73 |
st.write("Độ Chính Xác")
|
| 74 |
+
st.write('`' + str(confidence_score * 100) + '%`')
|
| 75 |
|
| 76 |
st.write("`ID: " + str(index) + "`")
|
| 77 |
st.write("## Tên: " + class_name)
|