Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def generate_caption(image):
|
|
31 |
|
32 |
return generated_caption, audio_path
|
33 |
|
34 |
-
@app.route('/
|
35 |
def generate_caption_api():
|
36 |
image = request.files['image'].read()
|
37 |
generated_caption, audio_path = generate_caption(image)
|
|
|
31 |
|
32 |
return generated_caption, audio_path
|
33 |
|
34 |
+
@app.route('/upload', methods=['POST'])
|
35 |
def generate_caption_api():
|
36 |
image = request.files['image'].read()
|
37 |
generated_caption, audio_path = generate_caption(image)
|