LiamKhoaLe commited on
Commit
77d7341
·
1 Parent(s): 6e2027d

Upd requirements

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +2 -1
app.py CHANGED
@@ -12,6 +12,7 @@ from fastapi.responses import JSONResponse, FileResponse
12
  from fastapi.staticfiles import StaticFiles
13
 
14
  # AI + LLM
 
15
  from transformers import WhisperProcessor, WhisperForConditionalGeneration
16
  from google import genai
17
  from google.genai import types
 
12
  from fastapi.staticfiles import StaticFiles
13
 
14
  # AI + LLM
15
+ import torch # For transformer
16
  from transformers import WhisperProcessor, WhisperForConditionalGeneration
17
  from google import genai
18
  from google.genai import types
requirements.txt CHANGED
@@ -5,7 +5,8 @@ aiofiles # Static file serving
5
  python-multipart # File uploads
6
 
7
  # Voice‑to‑text (Whisper via Transformers)
8
- transformers==4.38.2 # ensure recent enough
 
9
  huggingface_hub
10
  scipy
11
  resampy
 
5
  python-multipart # File uploads
6
 
7
  # Voice‑to‑text (Whisper via Transformers)
8
+ transformers # For language processing
9
+ torch # Just to run transformer so don't remove
10
  huggingface_hub
11
  scipy
12
  resampy