Skip to content

Commit dc7b991

Browse files
committed
Update Dockerfile and app entry point; fix temperature field handling in whisper service
1 parent 4d2866e commit dc7b991

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ COPY . /app
1818
# Sync the project
1919
RUN uv sync --frozen
2020

21-
CMD [ "python", "src/transcribo_backend/foo.py" ]
21+
CMD [ "uv", "run", "fastapi", "dev", "./src/transcribo_backend/app.py" ]

src/transcribo_backend/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ async def submit_transcribe(audio_file: UploadFile) -> TaskStatus:
6464
if __name__ == "__main__": # pragma: no cover
6565
import uvicorn
6666

67-
uvicorn.run("main:app", host="127.0.0.1", port=8000, reload=True)
67+
uvicorn.run("transcribo_backend:app", host="127.0.0.1", port=8000, reload=True)

src/transcribo_backend/services/whisper_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ async def transcribe_submit_task(
145145
# Handle temperature which could be a single float or a list
146146
if isinstance(temperature, list):
147147
for temp in temperature:
148-
form_data.add_field("temperature[]", str(temp))
148+
form_data.add_field("temperature", str(temp))
149149
else:
150150
form_data.add_field("temperature", str(temperature))
151151

0 commit comments

Comments
 (0)