Spaces:
Runtime error
Runtime error
from fastapi import FastAPI | |
from app import predict | |
import os | |
from huggingface_hub import login | |
os.environ['HF_HOME'] = '/hug/cache/' | |
os.environ['TRANSFORMERS_CACHE'] = '/blabla/cache/' | |
app = FastAPI() | |
async def root(): | |
return {"Restaurant ChatBot":"Version 1.0 'First Draft'"} | |
def read_user(input_json: str): | |
return predict(input_json) |