Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -2,6 +2,22 @@ import gradio as gr
2
  import requests
3
  from huggingface_hub import InferenceClient
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  SPOONACULAR_API_KEY = "71259036cfb3405aa5d49c1220a988c5"
6
 
7
  def get_recipes(ingredient):
 
2
  import requests
3
  from huggingface_hub import InferenceClient
4
 
5
+
6
+ # Step 1 from Semantic Search
7
+ from sentence_transformers import SentenceTransformer
8
+ import torch
9
+
10
+
11
+ # Step 2 from Semantic Search
12
+ with open("water_cycle.txt", "r", encoding="utf-8") as file:
13
+ # Read the entire contents of the file and store it in a variable
14
+ water_cycle_text = file.read()
15
+
16
+ # Print the text below
17
+ print(water_cycle_text)
18
+
19
+
20
+
21
  SPOONACULAR_API_KEY = "71259036cfb3405aa5d49c1220a988c5"
22
 
23
  def get_recipes(ingredient):