Skip to content

Commit

Permalink
Update actions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaaihamza authored Mar 13, 2024
1 parent df42753 commit 133991f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actions/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run(self, dispatcher: CollectingDispatcher, tracker: Tracker, domain) -> lis
# Try reading the user track from Excel file
try:
my_dataframe_slot = tracker.get_slot('my_dataframe_slot')
df_recommendations = provide_recommendations(user_message_all, my_dataframe_slot,THRESH=0.3, n=1000, unique_values_dict=unique_values_dict, BERT_weights=BERT_weights,n_module=n_module)
df_recommendations = provide_recommendations("user_message_all", my_dataframe_slot, THRESH=0.3, n=1000, unique_values_dict=unique_values_dict, BERT_weights=BERT_weights,n_module=n_module)
#pd.read_json(my_dataframe_slot, orient='split')
except Exception as e:
print(e)
Expand Down Expand Up @@ -110,7 +110,7 @@ def name(self):
def run(self, dispatcher, tracker, domain):
try:
my_dataframe_slot = tracker.get_slot('my_dataframe_slot')
df_rslt = provide_recommendations(user_message_all, my_dataframe_slot,THRESH=0.3, n=1000, unique_values_dict=unique_values_dict, BERT_weights=BERT_weights,n_module=n_module)
df_rslt = provide_recommendations("user_message_all", my_dataframe_slot,THRESH=0.3, n=1000, unique_values_dict=unique_values_dict, BERT_weights=BERT_weights,n_module=n_module)
#df_rslt = pd.read_json(my_dataframe_slot, orient='split')
try:
module_number = tracker.get_slot('module_id')
Expand Down Expand Up @@ -161,7 +161,7 @@ def run(self, dispatcher, tracker, domain):

try:
my_dataframe_slot = tracker.get_slot('my_dataframe_slot')
df_rslt = provide_recommendations(user_message_all, my_dataframe_slot,THRESH=0.3, n=1000, unique_values_dict=unique_values_dict, BERT_weights=BERT_weights,n_module=n_module)
df_rslt = provide_recommendations("user_message_all", my_dataframe_slot,THRESH=0.3, n=1000, unique_values_dict=unique_values_dict, BERT_weights=BERT_weights,n_module=n_module)
# df_rslt = pd.read_json(my_dataframe_slot, orient='split')
except Exception as e:
print(e)
Expand Down

0 comments on commit 133991f

Please sign in to comment.