napstablook911 commited on
Commit
8621d6e
·
verified ·
1 Parent(s): a412b6b

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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