pratikshahp commited on
Commit
a5efddc
·
verified ·
1 Parent(s): 1fb09ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,8 +50,7 @@ if uploaded_file is not None:
50
  st.image(image, caption="Uploaded Image", use_column_width=True)
51
 
52
  with col2:
53
- st.subheader("Extracted Information")
54
- submit = st.button("Extract Information")
55
 
56
  if submit:
57
  if image is None:
@@ -59,4 +58,5 @@ if uploaded_file is not None:
59
  else:
60
  extracted_text = extract_text_from_image(image)
61
  response = get_response_from_llm(extracted_text, question)
 
62
  st.write(response)
 
50
  st.image(image, caption="Uploaded Image", use_column_width=True)
51
 
52
  with col2:
53
+ submit = st.button("Generate Response")
 
54
 
55
  if submit:
56
  if image is None:
 
58
  else:
59
  extracted_text = extract_text_from_image(image)
60
  response = get_response_from_llm(extracted_text, question)
61
+ st.subheader("Extracted Information")
62
  st.write(response)