Update app.py
Browse files9 unmodified lines101112131415169 unmodified lines#pipe = pipeline("text2text-generation",#model="google/flan-t5-small")pipe = pipeline("text-generation", model="openchat/openchat-3.5-0106")# Define a function to handle the GET request at `/generate`# The generate() function is defined as a FastAPI route that takes a# string parameter called text. The function generates text based on the # input using the pipeline() object, and returns a JSON response9 unmodified lines101112131415169 unmodified lines#pipe = pipeline("text2text-generation",#model="google/flan-t5-small")pipe = pipeline("text-generation", model="KoboldAI/GPT-J-6B-Adventure")# Define a function to handle the GET request at `/generate`# The generate() function is defined as a FastAPI route that takes a# string parameter called text. The function generates text based on the # input using the pipeline() object, and returns a JSON response
app.py+1-1