Skip to content

Commit

Permalink
Commit: Update document and generate.ts files for improved styling an…
Browse files Browse the repository at this point in the history
…d quality tests
  • Loading branch information
Nutlope committed Feb 23, 2023
1 parent ff78dc5 commit 16f32c3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@
- [x] Add two dropdowns for what kind of room it is + dropdown for themes
- [x] Use new redis db for rate limiting
- [x] Deploy, assign domain, fix meta tags, add OG image with one of the genrated pics
- [ ] Make all dropdowns same length as upload box in /restore
- [ ] Send it to team/ai channel for feedback + tweet out a screenshot for hype
- [ ] Let replicate team know to keep it on when I launch
- [x] Tweet out a screenshot for hype
- [x] Let replicate team know to keep it on when I launch
- [x] Test it out locally + in prod to make sure it works properly
- [ ] Test out other models and tweak params to obtain optimal results
- [ ] /restore UI update: Make all dropdowns same length, make sure original image isn't stretches, re-align toggle
- [ ] Email upload.io about changing the background for that thing
- [ ] Maybe switch to 768 generations
- [ ] Send it to team/ai channel for feedback
- [ ] I don't like that it's low quality.

## Todos v1.5

Expand Down
2 changes: 1 addition & 1 deletion pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MyDocument extends Document {
<meta property="og:image" content={ogimage} />
<meta name="twitter:image" content={ogimage} />
</Head>
<body className="bg-black text-white">
<body className="bg-[#17181C] text-white">
<Main />
<NextScript />
</body>
Expand Down
9 changes: 8 additions & 1 deletion pages/api/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ export default async function handler(
body: JSON.stringify({
version:
"854e8727697a057c525cdb45ab037f64ecca770a1769cc52287c2e56472a247b",
input: { image: imageUrl, prompt: `a ${theme} ${room}` },
input: {
image: imageUrl,
prompt: `a ${theme.toLowerCase()} ${room.toLowerCase()}`,
a_prompt: "best quality, extremely detailed",
n_prompt:
"longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
// image_resolution: "768",
},
}),
});

Expand Down

0 comments on commit 16f32c3

Please sign in to comment.