Soumen commited on
Commit
f795660
·
1 Parent(s): 6f1f4f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,7 +82,8 @@ def bansum(text):
82
  if isinstance(out, list) and out[0].get("summary_text"):
83
  text_output = out[0]["summary_text"]
84
  st.success(text_output)
85
-
 
86
  @st.experimental_singleton
87
  def save():
88
  camera_photo = c2.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
@@ -97,7 +98,6 @@ def main():
97
  st.session_state["photo"]="done"
98
  if st.checkbox("Summarize from text/images/pdfs"):
99
  with st.container():
100
- c1, c2, c3 = st.columns([2,2,1])
101
  message = c1.text_input("Type your text here!")
102
  if c2.button("CaptureImage"):
103
  camera_photo=save()
 
82
  if isinstance(out, list) and out[0].get("summary_text"):
83
  text_output = out[0]["summary_text"]
84
  st.success(text_output)
85
+
86
+ c1, c2, c3 = st.columns([2,2,1])
87
  @st.experimental_singleton
88
  def save():
89
  camera_photo = c2.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
 
98
  st.session_state["photo"]="done"
99
  if st.checkbox("Summarize from text/images/pdfs"):
100
  with st.container():
 
101
  message = c1.text_input("Type your text here!")
102
  if c2.button("CaptureImage"):
103
  camera_photo=save()