Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from fastapi import FastAPI, HTTPException
|
2 |
from pydantic import BaseModel
|
3 |
-
from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
|
|
|
4 |
|
5 |
class ModelInput(BaseModel):
|
6 |
prompt: str
|
|
|
1 |
from fastapi import FastAPI, HTTPException
|
2 |
from pydantic import BaseModel
|
3 |
+
from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
|
4 |
+
from peft import PeftModel
|
5 |
|
6 |
class ModelInput(BaseModel):
|
7 |
prompt: str
|