Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -43,12 +43,22 @@ def speech_to_text(audio_sample):
|
|
43 |
#text = audio_sample["text"].lower()
|
44 |
#print(text)
|
45 |
#speech_data = audio_sample["audio"]["array"]
|
46 |
-
|
47 |
-
print(
|
48 |
-
|
49 |
-
|
|
|
|
|
|
|
|
|
50 |
output = diffuser_pipeline(audio_sample[1])
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
return output.images[0]
|
53 |
|
54 |
demo = gr.Interface(fn=speech_to_text, inputs=audio_input, outputs=image_output, title=title, description=description)
|
|
|
43 |
#text = audio_sample["text"].lower()
|
44 |
#print(text)
|
45 |
#speech_data = audio_sample["audio"]["array"]
|
46 |
+
|
47 |
+
print(f"""
|
48 |
+
ββββββββ
|
49 |
+
audio sample: {audio_sample}
|
50 |
+
audio array: {audio_sample[1]}
|
51 |
+
ββββββββ
|
52 |
+
""")
|
53 |
+
|
54 |
output = diffuser_pipeline(audio_sample[1])
|
55 |
|
56 |
+
print(f"""
|
57 |
+
ββββββββ
|
58 |
+
output: {output}
|
59 |
+
ββββββββ
|
60 |
+
""")
|
61 |
+
|
62 |
return output.images[0]
|
63 |
|
64 |
demo = gr.Interface(fn=speech_to_text, inputs=audio_input, outputs=image_output, title=title, description=description)
|