Spaces:
Sleeping
Sleeping
Mike W commited on
Commit ·
1323577
1
Parent(s): 805f019
Fix static directory and update python to 3.10
Browse files- mic_check.py +0 -5
- server.py +1 -1
mic_check.py
DELETED
|
@@ -1,5 +0,0 @@
|
|
| 1 |
-
import pyaudio
|
| 2 |
-
p = pyaudio.PyAudio()
|
| 3 |
-
print("Default input device index:", p.get_default_input_device_info()['index'])
|
| 4 |
-
print("Default input name:", p.get_default_input_device_info()['name'])
|
| 5 |
-
p.terminate()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server.py
CHANGED
|
@@ -10,7 +10,7 @@ from translator import VoiceTranslator
|
|
| 10 |
load_dotenv()
|
| 11 |
|
| 12 |
app = FastAPI()
|
| 13 |
-
app.mount("/static", StaticFiles(directory="static"), name="static")
|
| 14 |
|
| 15 |
# Load environment variables for API keys
|
| 16 |
google_creds = os.getenv("GOOGLE_APPLICATION_CREDENTIALS")
|
|
|
|
| 10 |
load_dotenv()
|
| 11 |
|
| 12 |
app = FastAPI()
|
| 13 |
+
#app.mount("/static", StaticFiles(directory="static"), name="static")
|
| 14 |
|
| 15 |
# Load environment variables for API keys
|
| 16 |
google_creds = os.getenv("GOOGLE_APPLICATION_CREDENTIALS")
|