Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,10 @@ def transcribe_the_command(audio):
|
|
8 |
file_name = "recorded_audio.wav"
|
9 |
sf.write(file_name, audio_data, sample_rate)
|
10 |
# Convert stereo to mono by averaging the two channels
|
11 |
-
print(file_name)
|
12 |
|
13 |
transcript = asr_pipe(file_name)["text"]
|
|
|
|
|
14 |
client = Client("https://ysharma-explore-llamav2-with-tgi.hf.space/")
|
15 |
result = client.predict(
|
16 |
transcript,
|
|
|
8 |
file_name = "recorded_audio.wav"
|
9 |
sf.write(file_name, audio_data, sample_rate)
|
10 |
# Convert stereo to mono by averaging the two channels
|
|
|
11 |
|
12 |
transcript = asr_pipe(file_name)["text"]
|
13 |
+
print(transcript)
|
14 |
+
|
15 |
client = Client("https://ysharma-explore-llamav2-with-tgi.hf.space/")
|
16 |
result = client.predict(
|
17 |
transcript,
|