Spaces:
Sleeping
Sleeping
Update Traffic_Signs_Classification.py
Browse files
Traffic_Signs_Classification.py
CHANGED
@@ -33,7 +33,7 @@ if uploaded_file is not None:
|
|
33 |
text_col = df['Name']
|
34 |
|
35 |
text_value = text_col.loc[num_col == img_class_idx].values[0]
|
36 |
-
st.
|
37 |
st.write(text_value)
|
38 |
|
39 |
|
@@ -48,5 +48,5 @@ if uploaded_file is not None:
|
|
48 |
with torch.no_grad():
|
49 |
output = model2(**inputs).waveform
|
50 |
|
51 |
-
st.
|
52 |
st.audio(output.numpy(),sample_rate=model2.config.sampling_rate)
|
|
|
33 |
text_col = df['Name']
|
34 |
|
35 |
text_value = text_col.loc[num_col == img_class_idx].values[0]
|
36 |
+
st.header("Predicted traffic sign:")
|
37 |
st.write(text_value)
|
38 |
|
39 |
|
|
|
48 |
with torch.no_grad():
|
49 |
output = model2(**inputs).waveform
|
50 |
|
51 |
+
st.header("Phonically describe this traffic sign:")
|
52 |
st.audio(output.numpy(),sample_rate=model2.config.sampling_rate)
|