mrbeliever commited on
Commit
60a9d6a
1 Parent(s): ecfb0cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,7 +62,7 @@ if uploaded_image and API_KEY:
62
 
63
  # Add a button to trigger caption generation
64
  if st.button("Generate Caption", use_container_width=True):
65
- st.write("Generating caption...")
66
  result = generate_caption(image_base64, API_KEY)
67
 
68
  # Extract and display the generated caption
@@ -77,7 +77,7 @@ if uploaded_image and API_KEY:
77
  .get("content", "No caption generated.")
78
  )
79
 
80
- st.text_area("Generated Prompt", caption, height=200, key="caption_output")
81
 
82
  except Exception as e:
83
  st.error(f"Error processing the response: {e}")
 
62
 
63
  # Add a button to trigger caption generation
64
  if st.button("Generate Caption", use_container_width=True):
65
+ st.write("Generating Prompt...")
66
  result = generate_caption(image_base64, API_KEY)
67
 
68
  # Extract and display the generated caption
 
77
  .get("content", "No caption generated.")
78
  )
79
 
80
+ st.text_area("Prompt Generated", caption, height=200, key="caption_output")
81
 
82
  except Exception as e:
83
  st.error(f"Error processing the response: {e}")