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

Fix error and improve code of image_app_simple #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

khoaguin
Copy link
Contributor

@khoaguin khoaguin commented Sep 8, 2024

  • Fix the below error: Screenshot from 2024-09-08 11-33-54

  • Can now run with both REPLICATE_API_KEY=<your_api_key> python main.py and just python main.py

- integrate the code to run with and without Replicate API into one py file. Update README.md accordingly

# gens database for storing generated image details
tables = database('data/gens.db').t
tables = database('data/gens.db')
Copy link
Contributor

@matatratata matatratata Sep 8, 2024

Choose a reason for hiding this comment

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

I apologize for my mistake. I locally missed the .t in the database instantiation. The correct approach is to revert my changes. The tables variable, as the name suggests, should point to the tables. I have already submitted a PR to address this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks @matatratata. I will update my code after your PR getting merged then

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