Spaces:
Runtime error
Runtime error
Update server.py
Browse files
server.py
CHANGED
@@ -5,8 +5,8 @@ app = FastAPI()
|
|
5 |
|
6 |
# Load Fine-Tuned Model
|
7 |
model_name = "/app/models/fine-tuned"
|
8 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
9 |
-
model = AutoModelForCausalLM.from_pretrained(
|
10 |
|
11 |
@app.get("/chat")
|
12 |
def chat(msg: str):
|
|
|
5 |
|
6 |
# Load Fine-Tuned Model
|
7 |
model_name = "/app/models/fine-tuned"
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained("NousResearch/Nous-Hermes-2-Mistral-7B")
|
9 |
+
model = AutoModelForCausalLM.from_pretrained("NousResearch/Nous-Hermes-2-Mistral-7B")
|
10 |
|
11 |
@app.get("/chat")
|
12 |
def chat(msg: str):
|