Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ model_id = "kingabzpro/whisper-base-urdu-full"
|
|
| 26 |
|
| 27 |
model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
| 28 |
model_id,
|
| 29 |
-
torch_dtype=torch.
|
| 30 |
use_safetensors=True,
|
| 31 |
)
|
| 32 |
|
|
@@ -93,7 +93,7 @@ demo = gr.Interface(
|
|
| 93 |
description=description,
|
| 94 |
examples=examples,
|
| 95 |
allow_flagging="never",
|
| 96 |
-
theme=
|
| 97 |
)
|
| 98 |
|
| 99 |
if __name__ == "__main__":
|
|
|
|
| 26 |
|
| 27 |
model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
| 28 |
model_id,
|
| 29 |
+
torch_dtype=torch.float16,
|
| 30 |
use_safetensors=True,
|
| 31 |
)
|
| 32 |
|
|
|
|
| 93 |
description=description,
|
| 94 |
examples=examples,
|
| 95 |
allow_flagging="never",
|
| 96 |
+
theme=gr.themes.Soft(),
|
| 97 |
)
|
| 98 |
|
| 99 |
if __name__ == "__main__":
|