Spaces:
Sleeping
Sleeping
Commit
·
9fa0554
1
Parent(s):
adb1654
just checking again
Browse files
app.py
CHANGED
|
@@ -36,15 +36,6 @@ def load_model():
|
|
| 36 |
model.eval()
|
| 37 |
return feature_extractor, model
|
| 38 |
|
| 39 |
-
def see_audio_options():
|
| 40 |
-
|
| 41 |
-
p = pyaudio.PyAudio()
|
| 42 |
-
for i in range(p.get_device_count()):
|
| 43 |
-
info = p.get_device_info_by_index(i)
|
| 44 |
-
logging.info(f"Device {i}: {info['name']}")
|
| 45 |
-
|
| 46 |
-
see_audio_options()
|
| 47 |
-
|
| 48 |
placeholder = st.empty()
|
| 49 |
placeholder.text("Loading model...")
|
| 50 |
feature_extractor, model = load_model()
|
|
|
|
| 36 |
model.eval()
|
| 37 |
return feature_extractor, model
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
placeholder = st.empty()
|
| 40 |
placeholder.text("Loading model...")
|
| 41 |
feature_extractor, model = load_model()
|