AnishKumbhar commited on
Commit
6fec903
1 Parent(s): 1999fab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ from transformers import pipeline
6
  # of the app. This way, we can use the docs as a landing page for the app on Spaces.
7
  app = FastAPI(docs_url="/")
8
 
9
- @app.get("/generate")
10
- def generate_endpoint(breed: str):
11
  """
12
  Using the text2text-generation pipeline from `transformers`, generate text
13
  from the given input text. The model used is `google/flan-t5-small`, which
 
6
  # of the app. This way, we can use the docs as a landing page for the app on Spaces.
7
  app = FastAPI(docs_url="/")
8
 
9
+ @app.get("/food")
10
+ def food_endpoint(breed: str):
11
  """
12
  Using the text2text-generation pipeline from `transformers`, generate text
13
  from the given input text. The model used is `google/flan-t5-small`, which