Leilaaaah commited on
Commit
6c446e9
·
verified ·
1 Parent(s): 54a6f46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
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
- 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,5 +100,5 @@ demo = gr.ChatInterface(
100
  )
101
 
102
 
103
- if __name__ == "__main__":
104
- demo.launch()
 
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()