Fraser commited on
Commit
be73523
·
1 Parent(s): fe73d4f

finish off the UI

Browse files
Files changed (1) hide show
  1. src/proxy_lite/app.py +5 -5
src/proxy_lite/app.py CHANGED
@@ -20,6 +20,7 @@ def get_user_config(config_expander):
20
  "include_poi_text": True,
21
  "homepage": "https://www.google.com",
22
  "keep_original_image": False,
 
23
  },
24
  "solver": {
25
  "name": "simple",
@@ -166,9 +167,8 @@ async def run_task_async(
166
  for idx, (action, img, som) in enumerate(zip(all_steps, all_screenshots, all_soms, strict=False)):
167
  st.write(f"**Step {idx + 1}**")
168
  st.image(img, use_container_width=True)
169
- with st.expander("points of interest", expanded=False):
170
- st.markdown(som)
171
- st.write(f"**Action:** {action}")
172
  action_placeholder.write(" ")
173
  status_placeholder.write(f"✨ **Result:** {latest_step}")
174
 
@@ -222,9 +222,9 @@ def main():
222
  ),
223
  )
224
 
225
- st.success("Wish granted!", icon="✨")
226
  else:
227
- st.error("Please make a wish first!")
228
 
229
 
230
  if __name__ == "__main__":
 
20
  "include_poi_text": True,
21
  "homepage": "https://www.google.com",
22
  "keep_original_image": False,
23
+ "headless": False,
24
  },
25
  "solver": {
26
  "name": "simple",
 
167
  for idx, (action, img, som) in enumerate(zip(all_steps, all_screenshots, all_soms, strict=False)):
168
  st.write(f"**Step {idx + 1}**")
169
  st.image(img, use_container_width=True)
170
+ st.markdown(som)
171
+ st.write(action)
 
172
  action_placeholder.write(" ")
173
  status_placeholder.write(f"✨ **Result:** {latest_step}")
174
 
 
222
  ),
223
  )
224
 
225
+ st.success("Task completed!", icon="✨")
226
  else:
227
+ st.error("Please give a task first!")
228
 
229
 
230
  if __name__ == "__main__":