Skip to content

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