Spaces:
Runtime error
Runtime error
David_A
commited on
Commit
·
2097ef1
1
Parent(s):
cd6bac6
change model small and auth
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import ffmpeg
|
|
4 |
|
5 |
|
6 |
def transcribe_audio(audio_file):
|
7 |
-
model = whisper.load_model("
|
8 |
result = model.transcribe(audio_file, fp16=False)
|
9 |
return result["text"]
|
10 |
|
@@ -17,7 +17,7 @@ def main():
|
|
17 |
outputs=output_text, title="Transciption Audio DITALIXSA",
|
18 |
description="Charger l'audio")
|
19 |
|
20 |
-
iface.launch()
|
21 |
|
22 |
|
23 |
if __name__ == '__main__':
|
|
|
4 |
|
5 |
|
6 |
def transcribe_audio(audio_file):
|
7 |
+
model = whisper.load_model("small")
|
8 |
result = model.transcribe(audio_file, fp16=False)
|
9 |
return result["text"]
|
10 |
|
|
|
17 |
outputs=output_text, title="Transciption Audio DITALIXSA",
|
18 |
description="Charger l'audio")
|
19 |
|
20 |
+
iface.launch(auth=("admin", "pass1234"))
|
21 |
|
22 |
|
23 |
if __name__ == '__main__':
|