Krishnaik06 commited on
Commit
92ee220
·
verified ·
1 Parent(s): 7f2feb0

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -9,6 +9,10 @@ app = FastAPI()
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
 
9
  # given an input.
10
  pipe = pipeline("text2text-generation",
11
  model="google/flan-t5-small")
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