Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def write_to_file(input_file):
|
|
| 31 |
sf.write("my_Audio_file.flac",input_file, fs)
|
| 32 |
api = HfApi()
|
| 33 |
operations = [
|
| 34 |
-
CommitOperationAdd(path_in_repo="my_Audio_file.flac", path_or_fileobj="
|
| 35 |
# CommitOperationAdd(path_in_repo="weights.h5", path_or_fileobj="~/repo/weights-final.h5"),
|
| 36 |
# CommitOperationDelete(path_in_repo="old-weights.h5"),
|
| 37 |
# CommitOperationDelete(path_in_repo="logs/"),
|
|
@@ -52,7 +52,7 @@ operations = [
|
|
| 52 |
pipe = pipeline(model="Shubham09/whisper31filescheck") # change to "your-username/the-name-you-picked"
|
| 53 |
|
| 54 |
def asr_transcript(audio):
|
| 55 |
-
audio = "
|
| 56 |
text = pipe(audio)["text"]
|
| 57 |
return text
|
| 58 |
|
|
|
|
| 31 |
sf.write("my_Audio_file.flac",input_file, fs)
|
| 32 |
api = HfApi()
|
| 33 |
operations = [
|
| 34 |
+
CommitOperationAdd(path_in_repo="my_Audio_file.flac", path_or_fileobj="Shubham09/whisper31filescheck/repo/my_Audio_file.flac"),
|
| 35 |
# CommitOperationAdd(path_in_repo="weights.h5", path_or_fileobj="~/repo/weights-final.h5"),
|
| 36 |
# CommitOperationDelete(path_in_repo="old-weights.h5"),
|
| 37 |
# CommitOperationDelete(path_in_repo="logs/"),
|
|
|
|
| 52 |
pipe = pipeline(model="Shubham09/whisper31filescheck") # change to "your-username/the-name-you-picked"
|
| 53 |
|
| 54 |
def asr_transcript(audio):
|
| 55 |
+
audio = "Shubham09/whisper31filescheck/repo/my_Audio_file.flac"
|
| 56 |
text = pipe(audio)["text"]
|
| 57 |
return text
|
| 58 |
|