Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 60 |
-
else:
|
| 61 |
-
|
| 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 |
|