revert tabels operations changes, optimize imports#40
Open
matatratata wants to merge 5 commits intoAnswerDotAI:mainfrom
Open
revert tabels operations changes, optimize imports#40matatratata wants to merge 5 commits intoAnswerDotAI:mainfrom
matatratata wants to merge 5 commits intoAnswerDotAI:mainfrom
Conversation
matatratata
commented
Sep 7, 2024
| from PIL import Image | ||
|
|
||
| from fasthtml.common import * | ||
| from replicate import Client |
Contributor
Author
There was a problem hiding this comment.
fasthtml.common imports most of the modules. Among them - basics.replicate fn which can be confused with replicate module.
matatratata
commented
Sep 7, 2024
| tables = database('data/gens.db').t | ||
| gens = tables.t.gens | ||
| if not gens in tables.t: | ||
| gens = tables.gens |
Contributor
Author
There was a problem hiding this comment.
reverted changes - missed .t locally from line 11
matatratata
commented
Sep 8, 2024
image_app_simple/main.py
Outdated
| folder = f"data/gens/{str(uuid.uuid4())}" | ||
| os.makedirs(folder, exist_ok=True) | ||
| g = gens.insert(Generation(prompt=prompt, folder=folder)) | ||
| g = gens.insert(Generation(prompt=prompt, id=f"{gens.count}", folder=folder)) |
Contributor
Author
There was a problem hiding this comment.
None was propagated, due to manual modules import. No longer an issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.