Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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
|