Spaces:
Build error
Build error
Commit
·
9578310
1
Parent(s):
08af530
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from statistics import mode
|
|
12 |
letter_map={0: 'അ', 1: 'ആ', 2: 'ച', 3: 'ഇ', 4: 'ജ', 5: 'ക', 6: 'ല', 7: 'ൾ', 8: 'ണ', 9: 'ന', 10: 'പ', 11: 'ര', 12: 'ർ', 13: 'റ', 14: 'സ', 15: 'ട', 16: 'ത', 17: 'വ', 18: 'യ', 19: 'ഴ'}
|
13 |
|
14 |
st.header('Sign Detection')
|
15 |
-
model = YOLO(
|
16 |
|
17 |
|
18 |
|
@@ -48,7 +48,7 @@ if uploaded_file is not None:
|
|
48 |
st.text("Uploaded Video")
|
49 |
|
50 |
if st.button("Submit"):
|
51 |
-
output_folder =
|
52 |
files = glob.glob(os.path.join(output_folder, '*'))
|
53 |
for file in files:
|
54 |
os.remove(file)
|
|
|
12 |
letter_map={0: 'അ', 1: 'ആ', 2: 'ച', 3: 'ഇ', 4: 'ജ', 5: 'ക', 6: 'ല', 7: 'ൾ', 8: 'ണ', 9: 'ന', 10: 'പ', 11: 'ര', 12: 'ർ', 13: 'റ', 14: 'സ', 15: 'ട', 16: 'ത', 17: 'വ', 18: 'യ', 19: 'ഴ'}
|
13 |
|
14 |
st.header('Sign Detection')
|
15 |
+
model = YOLO("best.onnx",task='detect')
|
16 |
|
17 |
|
18 |
|
|
|
48 |
st.text("Uploaded Video")
|
49 |
|
50 |
if st.button("Submit"):
|
51 |
+
output_folder ="output"
|
52 |
files = glob.glob(os.path.join(output_folder, '*'))
|
53 |
for file in files:
|
54 |
os.remove(file)
|