Coder Social home page Coder Social logo

Add CLI interface about screenshot-to-code HOT 5 OPEN

Test67766 avatar Test67766 commented on June 8, 2024
Add CLI interface

from screenshot-to-code.

Comments (5)

Test67766 avatar Test67766 commented on June 8, 2024 1

okay i will try

from screenshot-to-code.

abi avatar abi commented on June 8, 2024

There isn't but if someone wants to submit a PR, happy to include it.

from screenshot-to-code.

abi avatar abi commented on June 8, 2024

I'd appreciate it if it didn't refactor the code too much (harder to review PR). There is a eval script that does run the generate code functionality in bulk from CLI: https://github.com/abi/screenshot-to-code/blob/main/Evaluation.md

from screenshot-to-code.

Test67766 avatar Test67766 commented on June 8, 2024

I have add the STACK var but (i have defined at start an OpenAPi on .env fie):

python3 run_evals.py
Traceback (most recent call last):
File "/home/glande/Desktop/screenshot-to-code/backend/run_evals.py", line 43, in
asyncio.run(main())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home//Desktop/screenshot-to-code/backend/run_evals.py", line 31, in main
results = await asyncio.gather(*tasks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/
/Desktop/screenshot-to-code/backend/evals/core.py", line 21, in generate_code_core
if not anthropic_api_key:
^^^^^^^^^^^^^^^^^
NameError: name 'anthropic_api_key' is not defined

from screenshot-to-code.

abi avatar abi commented on June 8, 2024

You probably just need to set that env var

from screenshot-to-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.