Skip to content

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.
@sweep-ai-deprecated
Copy link
Contributor

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