Spaces:
Runtime error
Runtime error
Update main.py
Browse files7 unmodified lines8910111213147 unmodified lines# This function will be able to generate text# given an input.pipe = pipeline("text2text-generation",model="google/flan-t5-small")# Define a function to handle the GET request at `/generate`# The generate() function is defined as a FastAPI route that takes a7 unmodified lines8910111213147 unmodified lines# This function will be able to generate text# given an input.pipe = pipeline("text2text-generation",model="google/flan-t5-large")# Define a function to handle the GET request at `/generate`# The generate() function is defined as a FastAPI route that takes a
main.py+1-1