abi / screenshot-to-code

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
https://screenshottocode.com
MIT License
56.21k stars 6.91k forks source link

Unable to generate code #351

Open ponypy opened 3 months ago

ponypy commented 3 months ago

Upload the screenshot. Code generation will stop after 2 seconds, and there is no code in the display box on the right. There are no errors in my settings. 微信截图_20240603211139

https://github.com/abi/screenshot-to-code/assets/86462889/31cb179e-e4ba-44b8-bafa-0856ce188224

arkanovo commented 3 months ago

Similar problem. I need help

abi commented 3 months ago

Thanks for the video. Could you please share your backend logs? I need that to debug the issue.

arkanovo commented 3 months ago

can I offer to give you my code from AnyDesk and you can take a look?

abi commented 3 months ago

It's easier if you just share screenshots or videos. Thanks.

arkanovo commented 3 months ago

image image Maybe I'm doing something wrong?

abi commented 3 months ago

These are your front-end logs. Are you running the backend? Can you share logs from there?

arkanovo commented 3 months ago

Where file logs? Do you know?

abi commented 3 months ago

Did you run the backend?

arkanovo commented 3 months ago

yes

abi commented 3 months ago

Please share the logs in the terminal window that’s running the backend.

ponypy commented 3 months ago

image This is my backend log thanks.

abi commented 3 months ago

Looks like the front-end is not hitting your backend. Are they running on the same machine? Can you visit 127.0.0.1:7001 and show me what it says?

ponypy commented 3 months ago

image image image Thanks!

abi commented 3 months ago

I think the issue is with the OpenAI proxy you're using? gptapi.us. Seems like it's returning no code. Once you upload a image, what does the front-end look like?

ponypy commented 3 months ago

I don't think it's a proxy problem, because my openaiApi is also used in other applications without problems, and I could use Screenshot to Code normally some time ago. It suddenly became unavailable recently. Here is a video of my demonstration.

https://github.com/abi/screenshot-to-code/assets/86462889/74e9756b-a1a0-45d8-a16f-5f8994c97066

abi commented 3 months ago

@ponypy Have you tried GPT 4 Turbo or vision?

Have you pulled from master since it was last working?

lotricLohale commented 3 months ago

老哥解决了吗,我也碰到了