Spaces:
Runtime error
Runtime error
AnishKumbhar
commited on
Commit
•
81d76b1
1
Parent(s):
43ccb88
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
|
5 |
# NOTE - we configure docs_url to serve the interactive Docs at the root path
|
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="/")
|
@@ -13,7 +12,7 @@ def food_endpoint(breed: str):
|
|
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 |
-
|
18 |
-
|
19 |
-
|
|
|
1 |
from fastapi import FastAPI
|
2 |
from transformers import pipeline
|
3 |
|
|
|
4 |
# NOTE - we configure docs_url to serve the interactive Docs at the root path
|
5 |
# of the app. This way, we can use the docs as a landing page for the app on Spaces.
|
6 |
app = FastAPI(docs_url="/")
|
|
|
12 |
from the given input text. The model used is `google/flan-t5-small`, which
|
13 |
can be found [here](https://huggingface.co/google/flan-t5-small).
|
14 |
"""
|
15 |
+
if breed == 'Labro':
|
16 |
+
return "Dog is healthy!"
|
17 |
+
else:
|
18 |
+
return "Dog is super healthy!"
|