musdfakoc commited on
Commit
8cea3ee
·
verified ·
1 Parent(s): c91ba2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- return generated_audio, sample_rate
 
 
 
 
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