Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -186,7 +186,11 @@ def generate_audio_from_image(image):
|
|
186 |
# Debug: Print the shape and type of the generated audio
|
187 |
print(f"Generated audio shape: {generated_audio.shape}, type: {generated_audio.dtype}")
|
188 |
|
189 |
-
|
|
|
|
|
|
|
|
|
190 |
|
191 |
|
192 |
|
|
|
186 |
# Debug: Print the shape and type of the generated audio
|
187 |
print(f"Generated audio shape: {generated_audio.shape}, type: {generated_audio.dtype}")
|
188 |
|
189 |
+
# Ensure sample_rate is an integer
|
190 |
+
print(f"Sample rate: {sample_rate}, type: {type(sample_rate)}") # Debugging
|
191 |
+
|
192 |
+
# Return the audio and sample rate in the correct format
|
193 |
+
return generated_audio, int(sample_rate) # Ensure sample_rate is an integer
|
194 |
|
195 |
|
196 |
|