Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converted project into a python package. #199

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

theonlyamos
Copy link

I've added the ability to change model to gemin pro vision.
Model can be made with MODEL=gemini poetry run uvicorn main:app --reload --port 7001
or on the web ui settings dialog.

theonlyamos and others added 2 commits December 22, 2023 17:37
Model can be set on runtime using  `MODEL=gemini poetry run uvicorn main:app --reload --port 7001` or by configuring it on the web ui.
Follow instructions on the README to set appropriate api keys.
Copy link
Contributor

sweep-ai bot commented Dec 22, 2023

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

@theonlyamos theonlyamos changed the title Gemini Pro Vision support Added. Converted project into a python package. Dec 26, 2023
@theonlyamos
Copy link
Author

I've converted the project into a python package.
Install with command below:

pip install https://github.com/theonlyamos/screenshot-to-code/archive/main.zip

Usage:
Just run the project from the terminal after installation

screenshottocode

Go to https://github.com/theonlyamos/screenshot-to-code.git for more information.

args.func(args)

except Exception as e:
logging.error(str(e))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not use logging directly. Define logger = logging.getLogger(name) and use logger instead :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants