Spaces:
Build error
Build error
Update app.py
Browse files
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.
|
| 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)
|