Maddiew1314 commited on
Commit
65c2c25
·
verified ·
1 Parent(s): f01f631

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -4,6 +4,7 @@ from sentence_transformers import SentenceTransformer
4
  import torch
5
  import numpy as np
6
  import random
 
7
 
8
 
9
  #LLM we are using
@@ -51,6 +52,12 @@ def get_top_chunks(query):
51
 
52
  return top_chunks
53
 
 
 
 
 
 
 
54
 
55
  def respond(message, history):
56
  messages = [{"role": "system", "content": "You are a big sister chatbot named, Nessie. You help people feel better in a simple manner."}]
 
4
  import torch
5
  import numpy as np
6
  import random
7
+ import requests
8
 
9
 
10
  #LLM we are using
 
52
 
53
  return top_chunks
54
 
55
+ def get_nutrition_info(food_query):
56
+ url = "https://trackapi.nutritionix.com/v2/natural/nutrients"
57
+ headers = {
58
+
59
+ }
60
+
61
 
62
  def respond(message, history):
63
  messages = [{"role": "system", "content": "You are a big sister chatbot named, Nessie. You help people feel better in a simple manner."}]