Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Feb 27, 2023
1 parent 3ccf1ef commit 19b5b8f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@
- [ ] Test out other models and tweak params to obtain optimal results
- [ ] Play around with the scale input - 16 seems good
- [ ] /restore UI update: Make all dropdowns same length, make sure original image isn't stretches
- [ ] Email upload.io about changing the background for that thing
- [ ] Maybe switch to 768 generations
- [ ] Email upload.io about changing the background for that thing
- [ ] Mobile styles
- [ ] Some visual indication that it takes ~25s
- [ ] Test lighthouse scores to make sure I have good performance

## Todos v1.5

- [ ] Some visual indication that it takes ~25s
- [ ] Sharability features - look at Replicate's project for inspo
- [ ] Add ability to generate shareable links
- [ ] Add ability to generate shareable links – show
- [ ] Also use dynamic OGs to make this work as well
- [ ] Add a carousel of generated rooms using my image gallery

Replicate ID should be stored in the URL ideally

<!-- // 1. User form with dropdowns for theme and room
// 2. Get back id from Replicate, tell it to switch to the second component, query with the id
// 3. Result component with the image and the download button -->

# [roomGPT.io](https://roomGPT.io)

This project generates new variations of your room based on a photo.
Expand Down
2 changes: 2 additions & 0 deletions pages/api/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default async function handler(
});

let jsonStartResponse = await startResponse.json();

let endpointUrl = jsonStartResponse.urls.get;

// GET request to get the status of the image restoration process & return the result when it's ready
Expand All @@ -82,6 +83,7 @@ export default async function handler(

if (jsonFinalResponse.status === "succeeded") {
restoredImage = jsonFinalResponse.output;
console.log({ jsonFinalResponse });
} else if (jsonFinalResponse.status === "failed") {
break;
} else {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Home: NextPage = () => {
</h2>
<Link
className="bg-blue-600 rounded-xl text-white font-medium px-4 py-3 sm:mt-10 mt-8 hover:bg-blue-500 transition"
href="/restore"
href="/dream"
>
Generate your dream room
</Link>
Expand Down

0 comments on commit 19b5b8f

Please sign in to comment.