screenshot-to-code icon indicating copy to clipboard operation
screenshot-to-code copied to clipboard

video to code generation shows empty in the UI, while the code was generated in the log. docker deployment to local macbook

Open tianerphil opened this issue 1 year ago • 5 comments

Hi Abi, thank you for your work, it seems really interesting and well-rounded one. promising project. I ran it locally with docker installed on macbook pro. I can access the UI from localhost:5173, and it does work for static screenshot.

Nevertheless, when I use a short screen record video (8 MB, 1 min), it seems keep generating code during the full process around 3 minutes, it is proved by the backend log. but at the end of the processing, the UI suddenly cleared up, blanked with nothing showing up. there is no apparent error in the log. can you please share your opinion if you have encountered similar issue. thank you so much.

Local Deployment I followed the docker deployment instruction, only with these two customizations:

  1. due to video to code feature involved. I have set api-key in the UI setting for anthropic api access. it seems it does work.
  2. the default dockerfile for backend used python:3.12-slim as base layer, while I have changed it to python:3.10-slim, due to some incompatibility error happens when build the backend docker.

To Reproduce Steps to reproduce the behavior:

  1. run the docker container locally with docker-compse up -d --build
  2. visit the http://localhost:5173
  3. give a short screen record video around 1 min, 8 MB
  4. wait for around 3 min, there is nothing generated in the UI.

Screenshots of backend AND frontend terminal logs I have attached the screenshot of the final UI with empty generation result. I have attached backend and frontend log from the docker desktop for macOS.

backend-log-in-docker.txt frontend-log-in-docker.txt Screenshot 2024-06-23 at 14 20 27

tianerphil avatar Jun 23 '24 10:06 tianerphil