Bunpheng commited on
Commit
68973dc
1 Parent(s): 4d384cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 t5(input):
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