Spaces:
Sleeping
Sleeping
Daniel Cerda Escobar
commited on
Commit
·
d6675dc
1
Parent(s):
c72147b
Update app file
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ from PIL import Image
|
|
| 3 |
import random
|
| 4 |
import sahi.utils.file
|
| 5 |
import pandas as pd
|
|
|
|
| 6 |
|
| 7 |
IMAGE_TO_URL = {
|
| 8 |
'factory_pid.png' : 'https://d1afc1j4569hs1.cloudfront.net/factory-pid.png',
|
|
@@ -69,5 +70,6 @@ with col2:
|
|
| 69 |
st.markdown('#### Set model parameters')
|
| 70 |
postprocess_match_threshold = st.select_slider(
|
| 71 |
'Select confidence threshold',
|
| 72 |
-
|
|
|
|
| 73 |
)
|
|
|
|
| 3 |
import random
|
| 4 |
import sahi.utils.file
|
| 5 |
import pandas as pd
|
| 6 |
+
import numpy as np
|
| 7 |
|
| 8 |
IMAGE_TO_URL = {
|
| 9 |
'factory_pid.png' : 'https://d1afc1j4569hs1.cloudfront.net/factory-pid.png',
|
|
|
|
| 70 |
st.markdown('#### Set model parameters')
|
| 71 |
postprocess_match_threshold = st.select_slider(
|
| 72 |
'Select confidence threshold',
|
| 73 |
+
options = np.linspace(0,1,10),
|
| 74 |
+
value = 0.8
|
| 75 |
)
|