dogutcu commited on
Commit
8db6a7a
·
verified ·
1 Parent(s): 19a5c6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -70,6 +70,8 @@ def generate_response(user_query, relevant_segment):
70
  confidence_score = response[0]['score']
71
 
72
  return generated_text, confidence_score
 
 
73
  try:
74
  system_message = "You are a chatbot specialized in providing information about food composting tips, tricks, and basics."
75
  user_message = f"Here's the information on composting: {relevant_segment}"
@@ -90,8 +92,8 @@ def generate_response(user_query, relevant_segment):
90
  except Exception as e:
91
  print(f"Error in generating response: {e}")
92
  return f"Error in generating response: {e}"
 
93
 
94
-
95
 
96
  def query_model(question):
97
  """
 
70
  confidence_score = response[0]['score']
71
 
72
  return generated_text, confidence_score
73
+
74
+ '''
75
  try:
76
  system_message = "You are a chatbot specialized in providing information about food composting tips, tricks, and basics."
77
  user_message = f"Here's the information on composting: {relevant_segment}"
 
92
  except Exception as e:
93
  print(f"Error in generating response: {e}")
94
  return f"Error in generating response: {e}"
95
+ '''
96
 
 
97
 
98
  def query_model(question):
99
  """