Chat-AI / app.py
Idhammz's picture
Update app.py
040b178 verified
Raw History Blame Contribute Delete
504 Bytes
import re
import base64
from PIL import Image
from io import BytesIO
import numpy as np
from fastapi import FastAPI
from pydantic import BaseModel
from keras.models import load_model
from keras.utils import img_to_array
from tensorflow.keras.utils import load_img, img_to_array
import uvicorn
app = FastAPI()
# Endpoint baru /hello yang mengembalikan string "hello"
@app.get("/hello")
async def say_hello():
return "hello"
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)