update
Browse files
app.py
CHANGED
@@ -188,7 +188,7 @@ if __name__ == "__main__":
|
|
188 |
if screenshot:
|
189 |
st.session_state.image_index = 0
|
190 |
print("get screenshot!")
|
191 |
-
image_folder = "images/"
|
192 |
with open(image_folder+str(st.session_state.image_index)+".png", "wb") as f:
|
193 |
f.write(base64.b64decode(screenshot))
|
194 |
image_files = os.listdir(image_folder)
|
@@ -280,7 +280,7 @@ class VisitPage(BaseTool):
|
|
280 |
st.markdown('**📸Observation**')
|
281 |
if screenshot:
|
282 |
print("get screenshot!")
|
283 |
-
image_folder = "images/"
|
284 |
with open(image_folder+str(st.session_state.image_index+1)+".png", "wb") as f:
|
285 |
f.write(base64.b64decode(screenshot))
|
286 |
st.session_state.image_index += 1
|
|
|
188 |
if screenshot:
|
189 |
st.session_state.image_index = 0
|
190 |
print("get screenshot!")
|
191 |
+
image_folder = os.getcwd() + "/images/"
|
192 |
with open(image_folder+str(st.session_state.image_index)+".png", "wb") as f:
|
193 |
f.write(base64.b64decode(screenshot))
|
194 |
image_files = os.listdir(image_folder)
|
|
|
280 |
st.markdown('**📸Observation**')
|
281 |
if screenshot:
|
282 |
print("get screenshot!")
|
283 |
+
image_folder = os.getcwd() + "/images/"
|
284 |
with open(image_folder+str(st.session_state.image_index+1)+".png", "wb") as f:
|
285 |
f.write(base64.b64decode(screenshot))
|
286 |
st.session_state.image_index += 1
|