AnishKumbhar commited on
Commit
c6d7b15
1 Parent(s): 2b94bcc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -7,11 +7,13 @@ from transformers import pipeline
7
  app = FastAPI(docs_url="/")
8
 
9
  @app.get("/generate")
10
- def generate(text: 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
14
  can be found [here](https://huggingface.co/google/flan-t5-small).
15
  """
16
-
17
- return "Dog is healthy!"
 
 
 
7
  app = FastAPI(docs_url="/")
8
 
9
  @app.get("/generate")
10
+ def generate(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
14
  can be found [here](https://huggingface.co/google/flan-t5-small).
15
  """
16
+ if(breed=='Labro')
17
+ return "Dog is healthy!"
18
+ else
19
+ return "Dog is super healthy!"