MAli7319 commited on
Commit
732a250
·
1 Parent(s): 78e167d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -55,10 +55,10 @@ def user_interaction(comment, model):
55
 
56
 
57
  def take_input(model):
58
- if (detect(comment) != "en") or (len(comment) < 20):
59
- return "Sorry, your comment does not meet the requirements.\n", "Please check your comment"
60
- else:
61
- return user_interaction(comment, model)
62
 
63
  cons_tuned_svr, _, _, _, _ = sample_model(data, SVR(C=3, kernel="rbf", tol=0.001))
64
 
 
55
 
56
 
57
  def take_input(model):
58
+ #if (detect(comment) != "en") or (len(comment) < 20):
59
+ # return "Sorry, your comment does not meet the requirements.\n", "Please check your comment"
60
+ #else:
61
+ return user_interaction(comment, model)
62
 
63
  cons_tuned_svr, _, _, _, _ = sample_model(data, SVR(C=3, kernel="rbf", tol=0.001))
64