Mohamed-Sami commited on
Commit
3b4bf88
1 Parent(s): 3736d0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,12 +9,12 @@ app = FastAPI()
9
  pipe = pipeline("text2text-generation", model="google/flan-t5-small")
10
 
11
  @app.get("/")
12
- def home():
13
  return "hello world"
14
 
15
 
16
  @app.get("/generate")
17
- def generate(text:str):
18
 
19
  res = pipe(text)
20
 
 
9
  pipe = pipeline("text2text-generation", model="google/flan-t5-small")
10
 
11
  @app.get("/")
12
+ async def home():
13
  return "hello world"
14
 
15
 
16
  @app.get("/generate")
17
+ async def generate(text:str):
18
 
19
  res = pipe(text)
20