Kevin Louis commited on
Commit
dfbb079
1 Parent(s): e9cc178

logger and flagged/log file test

Browse files

Test to find out if the csv file produced by the logger function and the csv file produced by the auto flagging function is stored on the spaces virtual machine. Test to see if the information is be logged and the files updated. The last entries appended to the csv should appear in the console terminal.

Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -112,6 +112,14 @@ def chat_to_sequence(sequence, user_query):
112
  proximal_lower_threshold,
113
  proximal_upper_threshold,
114
  ]
 
 
 
 
 
 
 
 
115
 
116
  # Check the query score against threshold values
117
  if query_score >= proximal_upper_threshold:
 
112
  proximal_lower_threshold,
113
  proximal_upper_threshold,
114
  ]
115
+
116
+ # Logger Testing Code
117
+ user_log = pd.read_csv(log_filename)
118
+ print(user_log.tail(3))
119
+
120
+ # Flagged folder test code
121
+ flagged_log = pd.read_csv("flagged/log.csv")
122
+ print(flagged_log.tail(2))
123
 
124
  # Check the query score against threshold values
125
  if query_score >= proximal_upper_threshold: