Spaces:
Sleeping
Sleeping
File size: 259 Bytes
87a5d7a a8a0316 87a5d7a a8a0316 21fd804 a8a0316 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from fastapi import FastAPI
from model_config import console_chat
# Get time
app = FastAPI()
# FastAPI
@app.post("/")
def return_api(text: str):
# Get the caption
response= console_chat.chat(text)
# Return message
return response |