Skip to content

Commit

Permalink
show prompt on image click
Browse files Browse the repository at this point in the history
  • Loading branch information
candywal committed Dec 8, 2023
1 parent 040f034 commit af719ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def top_elo_images():
image_data = {
"id": str(image.id),
"creator": creator_username,
"prompt": image.prompt,
"url": image.url,
"elo": image.elo,
}
Expand Down
4 changes: 2 additions & 2 deletions Frontend/src/pages/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ const Leaderboard = () => {
width={800}
height={800}
/>
<p className="text-lg font-semibold mt-2">{selectedImage.creator}</p>
<p className="text-gray-600 font-semibold">ELO: {selectedImage.elo}</p>
<p className="text-lg text-gray-800 mt-2">"{selectedImage.prompt}" ~{selectedImage.creator}</p>

</div>
</div>
)}
Expand Down

0 comments on commit af719ab

Please sign in to comment.