Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -30,13 +30,14 @@ diffuser_pipeline = diffuser_pipeline.to(device)
|
|
30 |
#ββββββββββββββββββββββββββββββββββββββββββββ
|
31 |
# GRADIO SETUP
|
32 |
|
33 |
-
audio_input = gr.Audio(source="microphone")
|
34 |
image_output = gr.Image()
|
35 |
|
36 |
def speech_to_text(audio_sample):
|
37 |
#text = audio_sample["text"].lower()
|
38 |
#print(text)
|
39 |
#speech_data = audio_sample["audio"]["array"]
|
|
|
40 |
output = diffuser_pipeline(audio_sample)
|
41 |
|
42 |
return output.images[0]
|
|
|
30 |
#ββββββββββββββββββββββββββββββββββββββββββββ
|
31 |
# GRADIO SETUP
|
32 |
|
33 |
+
audio_input = gr.Audio(source="microphone", type="numpy")
|
34 |
image_output = gr.Image()
|
35 |
|
36 |
def speech_to_text(audio_sample):
|
37 |
#text = audio_sample["text"].lower()
|
38 |
#print(text)
|
39 |
#speech_data = audio_sample["audio"]["array"]
|
40 |
+
print(audio_sample)
|
41 |
output = diffuser_pipeline(audio_sample)
|
42 |
|
43 |
return output.images[0]
|