KingNish commited on
Commit
0ee9554
·
verified ·
1 Parent(s): 9fe2fb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -11,13 +11,6 @@ BASE_URL = "https://oevortex-webscout-api.hf.space"
11
  def index():
12
  return render_template("index.html")
13
 
14
- @app.route("/api/suggestions", methods=["GET"])
15
- def get_suggestions():
16
- search_query = request.args.get("q")
17
- api_endpoint = f"{BASE_URL}/api/suggestions?q={search_query}"
18
- response = requests.get(api_endpoint)
19
- return response.json()
20
-
21
  @app.route("/api/search", methods=["GET"])
22
  def search():
23
  q = request.args.get("q")
@@ -32,13 +25,6 @@ def search():
32
  except Exception as e:
33
  return {"error": f"Error during search: {e}"}
34
 
35
- @app.route("/api/answers", methods=["GET"])
36
- def get_people_also_search():
37
- search_query = request.args.get("q")
38
- api_endpoint = f"{BASE_URL}/api/answers?q={search_query}"
39
- response = requests.get(api_endpoint)
40
- return response.json()
41
-
42
  if __name__ == "__main__":
43
  port = int(os.environ.get('PORT', 7860))
44
  app.run(host='0.0.0.0', port=port)
 
11
  def index():
12
  return render_template("index.html")
13
 
 
 
 
 
 
 
 
14
  @app.route("/api/search", methods=["GET"])
15
  def search():
16
  q = request.args.get("q")
 
25
  except Exception as e:
26
  return {"error": f"Error during search: {e}"}
27
 
 
 
 
 
 
 
 
28
  if __name__ == "__main__":
29
  port = int(os.environ.get('PORT', 7860))
30
  app.run(host='0.0.0.0', port=port)