Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -200,9 +200,7 @@ def main():
|
|
200 |
model_path = './gan_model.pth' # Ensure the model is in the correct relative path
|
201 |
generator = load_gan_model(generator, model_path, device)
|
202 |
|
203 |
-
iface = gr.Interface(fn=generate_audio_from_image,
|
204 |
-
inputs=gr.Image(type="pil"),
|
205 |
-
outputs=gr.Audio(type="numpy", label="Generated Audio"))
|
206 |
|
207 |
|
208 |
|
|
|
200 |
model_path = './gan_model.pth' # Ensure the model is in the correct relative path
|
201 |
generator = load_gan_model(generator, model_path, device)
|
202 |
|
203 |
+
iface = gr.Interface(fn=generate_audio_from_image, inputs=gr.Image(type="pil"), outputs=gr.Audio(type="numpy", label="Generated Audio"))
|
|
|
|
|
204 |
|
205 |
|
206 |
|