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