Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -10,7 +10,7 @@ pipe = pipeline("text2text-generation", model="google/flan-t5-small")
|
|
| 10 |
# Define a root path to verify the server is running
|
| 11 |
@app.get("/")
|
| 12 |
def read_root():
|
| 13 |
-
return {"message": "Welcome to the FastAPI application. Use /generate to generate text."}
|
| 14 |
|
| 15 |
# Define a function to handle the GET request at `/generate`
|
| 16 |
@app.get("/generate")
|
|
|
|
| 10 |
# Define a root path to verify the server is running
|
| 11 |
@app.get("/")
|
| 12 |
def read_root():
|
| 13 |
+
return {"message": "Welcome to the FastAPI application. Use /generate to generate text 2."}
|
| 14 |
|
| 15 |
# Define a function to handle the GET request at `/generate`
|
| 16 |
@app.get("/generate")
|