Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
@@ -109,7 +109,7 @@ if uploaded_file is not None:
|
|
109 |
# The BLIP pipeline expects a PIL Image object directly
|
110 |
caption_results = captioner(image)
|
111 |
# Extract the generated text from the pipeline's output [7]
|
112 |
-
generated_caption = caption_results['generated_text']
|
113 |
|
114 |
# Optional: Enhance prompt for soundscape generation
|
115 |
# This helps guide the audio model towards environmental sounds
|
|
|
109 |
# The BLIP pipeline expects a PIL Image object directly
|
110 |
caption_results = captioner(image)
|
111 |
# Extract the generated text from the pipeline's output [7]
|
112 |
+
generated_caption = caption_results[0]['generated_text']
|
113 |
|
114 |
# Optional: Enhance prompt for soundscape generation
|
115 |
# This helps guide the audio model towards environmental sounds
|