psuserlas commited on
Commit
38312e6
·
verified ·
1 Parent(s): 0a25f87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -110,6 +110,10 @@ client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
110
  mom_type = []
111
  def respond(message, history, mom_type) :
112
  # mom_type = []
 
 
 
 
113
  if mom_type == "Cool Mom" :
114
  top_results = get_top_chunks(message, cool_chunk_embeddings, cleaned_cool_chunks)
115
  elif mom_type == "Tutor Mom" :
 
110
  mom_type = []
111
  def respond(message, history, mom_type) :
112
  # mom_type = []
113
+
114
+ if not mom_type:
115
+ return "Please choose atleast one mom"
116
+ selected = mom_type[0]
117
  if mom_type == "Cool Mom" :
118
  top_results = get_top_chunks(message, cool_chunk_embeddings, cleaned_cool_chunks)
119
  elif mom_type == "Tutor Mom" :