hirokibastos commited on
Commit
ad275c3
·
1 Parent(s): f82a67d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -8,7 +8,11 @@ app = FastAPI()
8
  # This function will be able to generate text
9
  # given an input.
10
  pipe = pipeline("text2text-generation",
11
- model="google/flan-t5-small")
 
 
 
 
12
 
13
  # Define a function to handle the GET request at `/generate`
14
  # The generate() function is defined as a FastAPI route that takes a
 
8
  # This function will be able to generate text
9
  # given an input.
10
  pipe = pipeline("text2text-generation",
11
+ model="hirokibastos/Question2RightAnswer")
12
+
13
+ @app.get("/")
14
+ def read_root():
15
+ return {"Hello": "World!"}
16
 
17
  # Define a function to handle the GET request at `/generate`
18
  # The generate() function is defined as a FastAPI route that takes a