Update main.py (#3)
Browse files
main.py
CHANGED
@@ -8,7 +8,9 @@ from fastapi import FastAPI
|
|
8 |
app = FastAPI()
|
9 |
|
10 |
#generator = pipeline('text-generation',model='gpt2')
|
11 |
-
generator = pipeline('text-generation',model='Open-Orca/Mistral-7B-OpenOrca')
|
|
|
|
|
12 |
|
13 |
@app.get("/")
|
14 |
async def root():
|
|
|
8 |
app = FastAPI()
|
9 |
|
10 |
#generator = pipeline('text-generation',model='gpt2')
|
11 |
+
#generator = pipeline('text-generation',model='Open-Orca/Mistral-7B-OpenOrca')
|
12 |
+
generator = pipeline("text-generation", model="lmsys/vicuna-7b-v1.5")
|
13 |
+
|
14 |
|
15 |
@app.get("/")
|
16 |
async def root():
|