update
Browse files- Dockerfile +0 -3
- app.py +2 -2
Dockerfile
CHANGED
|
@@ -23,9 +23,6 @@ RUN mkdir app
|
|
| 23 |
WORKDIR $HOME/app
|
| 24 |
COPY . $HOME/app
|
| 25 |
|
| 26 |
-
RUN chown -R user:user /home/user/app
|
| 27 |
-
RUN chmod -R 755 /home/user/app
|
| 28 |
-
|
| 29 |
EXPOSE 8501
|
| 30 |
CMD streamlit run app.py \
|
| 31 |
--server.headless true \
|
|
|
|
| 23 |
WORKDIR $HOME/app
|
| 24 |
COPY . $HOME/app
|
| 25 |
|
|
|
|
|
|
|
|
|
|
| 26 |
EXPOSE 8501
|
| 27 |
CMD streamlit run app.py \
|
| 28 |
--server.headless true \
|
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 =
|
| 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 =
|
| 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 = "./"
|
| 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 = "./"
|
| 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
|