Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ import os
|
|
4 |
|
5 |
app = FastAPI()
|
6 |
|
7 |
-
pipe_flan = pipeline("text2text-generation", model="
|
8 |
|
9 |
-
@app.get("/
|
10 |
def t5(input):
|
11 |
output = pipe_flan(input)
|
12 |
return {"output": output[0]["generated_text"]}
|
|
|
4 |
|
5 |
app = FastAPI()
|
6 |
|
7 |
+
pipe_flan = pipeline("text2text-generation", model="mistralai/Mistral-7B-v0.3")
|
8 |
|
9 |
+
@app.get("/mistral")
|
10 |
def t5(input):
|
11 |
output = pipe_flan(input)
|
12 |
return {"output": output[0]["generated_text"]}
|