Spaces:
Runtime error
Runtime error
Update server.py
Browse files3 unmodified lines4567891011123 unmodified linesapp = FastAPI()# Load Fine-Tuned Modelmodel_name = "/app/models/fine-tuned"tokenizer = AutoTokenizer.from_pretrained("NousResearch/Nous-Hermes-2-Mistral-7B")model = AutoModelForCausalLM.from_pretrained("NousResearch/Nous-Hermes-2-Mistral-7B")@app.get("/chat")def chat(msg: str):3 unmodified lines4567891011123 unmodified linesapp = FastAPI()# Load Fine-Tuned Modelmodel_name = "PygmalionAI/pygmalion-7b"tokenizer = AutoTokenizer.from_pretrained(model_name)model = AutoModelForCausalLM.from_pretrained(model_name)@app.get("/chat")def chat(msg: str):
server.py+3-3