eagle0504 commited on
Commit
3ff955e
·
verified ·
1 Parent(s): d336c1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -98,6 +98,14 @@ def main():
98
  with st.expander("Show/Hide Table"):
99
  st.table(df)
100
 
 
 
 
 
 
 
 
 
101
  if api_key:
102
  # Make API call
103
  st.success("Running Gemini!")
 
98
  with st.expander("Show/Hide Table"):
99
  st.table(df)
100
 
101
+ # Using an expander to hide the table
102
+ with st.expander("Show/Hide Annotation"):
103
+ try:
104
+ image = Image.open(image)
105
+ draw_bounding_boxes_for_textract(image.copy(), result_dict)
106
+ except:
107
+ st.warning("Check textract output!")
108
+
109
  if api_key:
110
  # Make API call
111
  st.success("Running Gemini!")