Spaces:
Build error
Build error
Upload 2 files
Browse files- app.py +3 -3
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -8,9 +8,9 @@ from fastapi import FastAPI, Response
|
|
| 8 |
app = FastAPI()
|
| 9 |
|
| 10 |
# Archivo de audio y rutas de salida
|
| 11 |
-
audio_file = "/
|
| 12 |
-
hls_output = "/
|
| 13 |
-
hls_segment_prefix = "/
|
| 14 |
|
| 15 |
# Comando FFmpeg para transmitir audio en HLS
|
| 16 |
ffmpeg_command = [
|
|
|
|
| 8 |
app = FastAPI()
|
| 9 |
|
| 10 |
# Archivo de audio y rutas de salida
|
| 11 |
+
audio_file = "/test.mp3"
|
| 12 |
+
hls_output = "/stream.m3u8"
|
| 13 |
+
hls_segment_prefix = "/stream"
|
| 14 |
|
| 15 |
# Comando FFmpeg para transmitir audio en HLS
|
| 16 |
ffmpeg_command = [
|
requirements.txt
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
fastapi==0.79.0
|
| 2 |
uvicorn==0.18.3
|
| 3 |
requests==2.28.1
|
| 4 |
-
ffmpeg-python==0.2.0
|
|
|
|
|
|
| 1 |
fastapi==0.79.0
|
| 2 |
uvicorn==0.18.3
|
| 3 |
requests==2.28.1
|
| 4 |
+
ffmpeg-python==0.2.0
|
| 5 |
+
watchdog
|