Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,14 +32,14 @@ def get_recipes(ingredient):
|
|
| 32 |
# return [r["title"] for r in data["results"]]
|
| 33 |
return data
|
| 34 |
|
| 35 |
-
iface = gr.Interface(
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
)
|
| 41 |
|
| 42 |
-
iface.launch()
|
| 43 |
|
| 44 |
"""
|
| 45 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
|
@@ -100,5 +100,5 @@ demo = gr.ChatInterface(
|
|
| 100 |
)
|
| 101 |
|
| 102 |
|
| 103 |
-
if __name__ == "__main__":
|
| 104 |
-
|
|
|
|
| 32 |
# return [r["title"] for r in data["results"]]
|
| 33 |
return data
|
| 34 |
|
| 35 |
+
# iface = gr.Interface(
|
| 36 |
+
# fn=get_recipes,
|
| 37 |
+
# inputs="text",
|
| 38 |
+
# outputs="text",
|
| 39 |
+
# title="Spoonacular Recipe Finder"
|
| 40 |
+
# )
|
| 41 |
|
| 42 |
+
# iface.launch()
|
| 43 |
|
| 44 |
"""
|
| 45 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
|
|
|
| 100 |
)
|
| 101 |
|
| 102 |
|
| 103 |
+
# if __name__ == "__main__":
|
| 104 |
+
demo.launch()
|