Spaces:
Runtime error
Runtime error
from fastapi import FastAPI | |
app = FastAPI() | |
app.mount("/", StaticFiles(directory="static", html=True), name="static") | |
def index() -> FileResponse: | |
return FileResponse(path="/static/index.html", media_type="text/html") | |
def t5(input): | |
output = pipe_flan(input) | |
return {"output": output[0]["generated_text"]} | |