Spaces:
Paused
Paused
WIP
Browse files
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 =
|
| 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="
|
| 210 |
description=(
|
| 211 |
-
"Transcribe
|
| 212 |
-
|
| 213 |
-
"
|
| 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="
|
| 229 |
description=(
|
| 230 |
-
"Transcribe
|
| 231 |
-
|
| 232 |
-
"
|
| 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 |
|