AeternumS commited on
Commit
a935c1d
1 Parent(s): 44ee111
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ if st.button("Submit"):
88
  st.image(image, caption=f"Uploaded Image: {uploaded_image.name}", use_column_width=True)
89
 
90
  extracted_text = extract_text_from_image(image)
91
- st.text_area(f"Extracted Text from {uploaded_image.name}", value=extracted_text, height=200)
92
 
93
  max_text_length = 500 # Adjust as needed
94
  if count_tokens(extracted_text) > max_text_length:
 
88
  st.image(image, caption=f"Uploaded Image: {uploaded_image.name}", use_column_width=True)
89
 
90
  extracted_text = extract_text_from_image(image)
91
+ st.text_area(f"Extracted Text from {uploaded_image.name}", value=extracted_text, height=200, key=f"{uploaded_image.name}")
92
 
93
  max_text_length = 500 # Adjust as needed
94
  if count_tokens(extracted_text) > max_text_length: