thefish1 commited on
Commit
9bff0c8
·
1 Parent(s): 82d44c7
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -390,7 +390,9 @@ def fetch_response_from_db(query_keywords_dict,class_name):
390
 
391
  if class_name in response['data']['Get']:
392
  results = response['data']['Get'][class_name]
 
393
  return results[0]['_additional']['distance'],results[0]['summary'], results[0]['keywords']
 
394
  else:
395
  print(f"Class name {class_name} not found in response")
396
  return None
@@ -398,7 +400,6 @@ def fetch_response_from_db(query_keywords_dict,class_name):
398
 
399
 
400
  def wrapper(message, history, max_tokens, temperature, top_p, window_size, distance_threshold, weight_keywords_users, weight_keywords_triggered, api_key):
401
- print(api_key)
402
  initialize_clients(api_key)
403
  return respond(message, history, max_tokens, temperature, top_p, window_size, distance_threshold, weight_keywords_users, weight_keywords_triggered)
404
 
 
390
 
391
  if class_name in response['data']['Get']:
392
  results = response['data']['Get'][class_name]
393
+ print(results[0]['keywords'])
394
  return results[0]['_additional']['distance'],results[0]['summary'], results[0]['keywords']
395
+
396
  else:
397
  print(f"Class name {class_name} not found in response")
398
  return None
 
400
 
401
 
402
  def wrapper(message, history, max_tokens, temperature, top_p, window_size, distance_threshold, weight_keywords_users, weight_keywords_triggered, api_key):
 
403
  initialize_clients(api_key)
404
  return respond(message, history, max_tokens, temperature, top_p, window_size, distance_threshold, weight_keywords_users, weight_keywords_triggered)
405