Ankur Goyal commited on
Commit
588673f
1 Parent(s): 87ad231

Tweak formatting

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -56,7 +56,7 @@ st.markdown("# DocQuery: Query Documents w/ NLP")
56
  if "document" not in st.session_state:
57
  st.session_state["document"] = None
58
 
59
- input_col, model_col = st.columns(2)
60
 
61
  with input_col:
62
  input_type = st.radio("Pick an input type", ["Upload", "URL"], horizontal=True)
@@ -103,7 +103,7 @@ question = st.text_input("QUESTION", "")
103
  document = st.session_state.document
104
  loading_placeholder = st.empty()
105
  if document is not None:
106
- col1, col2 = st.columns([3, 1])
107
  image = document.preview
108
 
109
 
@@ -129,7 +129,7 @@ if document is not None and question is not None and len(question) > 0:
129
  image.width,
130
  image.height,
131
  )
132
- draw.rectangle(((x1, y1), (x2, y2)), outline=colors[i])
133
 
134
  if document is not None:
135
  col1.image(image, use_column_width='auto')
56
  if "document" not in st.session_state:
57
  st.session_state["document"] = None
58
 
59
+ input_col, model_col = st.columns([2,1])
60
 
61
  with input_col:
62
  input_type = st.radio("Pick an input type", ["Upload", "URL"], horizontal=True)
103
  document = st.session_state.document
104
  loading_placeholder = st.empty()
105
  if document is not None:
106
+ col1, col2 = st.columns(2)
107
  image = document.preview
108
 
109
 
129
  image.width,
130
  image.height,
131
  )
132
+ draw.rectangle(((x1, y1), (x2, y2)), outline=colors[i], width=3)
133
 
134
  if document is not None:
135
  col1.image(image, use_column_width='auto')