JollypopChannel commited on
Commit
be55d90
1 Parent(s): ee8ff1a

add the code that collect the user input data log in app.py code itself

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -12,6 +12,10 @@ def process():
12
  # Call your Python function here to process the data
13
  output = model(text, cefr_level)
14
 
 
 
 
 
15
  # Save the output to a file
16
  count = 0
17
  max_choice = 4
 
12
  # Call your Python function here to process the data
13
  output = model(text, cefr_level)
14
 
15
+ user_data = {cefr_level: text}
16
+ with open("user_data_log.txt", "a") as file:
17
+ file.write(str(user_data) + "\n\n")
18
+
19
  # Save the output to a file
20
  count = 0
21
  max_choice = 4