muhtasham commited on
Commit
0844bdd
·
1 Parent(s): a6eeb9b
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -4,9 +4,8 @@ import datetime
4
  import tempfile
5
  import requests
6
  from loguru import logger
7
- from os import getenv
8
 
9
- API_URL = getenv("API_URL")
10
  headers = {
11
  "Accept": "application/json",
12
  "Content-Type": "audio/flac"
@@ -206,11 +205,11 @@ mf_transcribe = gr.Interface(
206
  gr.JSON(label="Transcription", open=True),
207
  gr.File(label="Subtitles (SRT)", visible=True),
208
  ],
209
- title="Whisper Large V3 Turbo: Transcribe Audio",
210
  description=(
211
- "Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the"
212
- f" checkpoint [{API_URL}](https://huggingface.co/{API_URL}) and 🤗 Transformers to transcribe audio files"
213
- " of arbitrary length."
214
  )
215
  )
216
 
@@ -225,11 +224,11 @@ file_transcribe = gr.Interface(
225
  gr.JSON(label="Transcription", open=True),
226
  gr.File(label="Subtitles (SRT)", visible=True),
227
  ],
228
- title="Whisper Large V3: Transcribe Audio",
229
  description=(
230
- "Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the"
231
- f" checkpoint [{API_URL}](https://huggingface.co/{API_URL}) and 🤗 Transformers to transcribe audio files"
232
- " of arbitrary length."
233
  )
234
  )
235
 
 
4
  import tempfile
5
  import requests
6
  from loguru import logger
 
7
 
8
+ API_URL = "https://skdpcqcdd929o4k3.us-east-1.aws.endpoints.huggingface.cloud"
9
  headers = {
10
  "Accept": "application/json",
11
  "Content-Type": "audio/flac"
 
205
  gr.JSON(label="Transcription", open=True),
206
  gr.File(label="Subtitles (SRT)", visible=True),
207
  ],
208
+ title="Tajik Speech Transcription",
209
  description=(
210
+ "Transcribe Tajik language audio from microphone or file upload. "
211
+ "Perfect for transcribing Tajik podcasts, interviews, and conversations. "
212
+ "Supports both microphone recording and file uploads."
213
  )
214
  )
215
 
 
224
  gr.JSON(label="Transcription", open=True),
225
  gr.File(label="Subtitles (SRT)", visible=True),
226
  ],
227
+ title="Tajik Speech Transcription",
228
  description=(
229
+ "Transcribe Tajik language audio files. "
230
+ "Upload your audio file and get accurate transcription with optional timestamps "
231
+ "and subtitles. Supports various audio formats."
232
  )
233
  )
234