mirror of
https://github.com/guilhermewerner/image-caption-api
synced 2025-06-15 14:35:13 +00:00
Update index.tsx
This commit is contained in:
@ -39,7 +39,7 @@ export default function Home() {
|
|||||||
|
|
||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
if (imageUrl) {
|
if (imageUrl) {
|
||||||
fetch("http://localhost:5885/caption-base64", {
|
fetch("https://ti6.fornaxhost.net/caption-base64", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify({ image_base64: image64 }),
|
body: JSON.stringify({ image_base64: image64 }),
|
||||||
headers: {
|
headers: {
|
||||||
@ -80,7 +80,7 @@ export default function Home() {
|
|||||||
style={{ width: '720px', height: '100%' }}
|
style={{ width: '720px', height: '100%' }}
|
||||||
>
|
>
|
||||||
<Ratio className='d-flex' aspectRatio="16x9">
|
<Ratio className='d-flex' aspectRatio="16x9">
|
||||||
<Image src={imageUrl} />
|
<Image src={imageUrl as string} />
|
||||||
</Ratio>
|
</Ratio>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user