Spaces:
Runtime error
Runtime error
nehalelkaref
commited on
Commit
•
26cc54f
1
Parent(s):
fab500e
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,8 @@ def home():
|
|
20 |
|
21 |
@app.route('/classify', methods = ['POST'])
|
22 |
def classify():
|
23 |
-
text = request.
|
|
|
24 |
|
25 |
prediction = pipe(text)
|
26 |
labels = {"LABEL_0":"GULF", "LABEL_1":"LEVANT","LABEL_2":"EGYPT"}
|
|
|
20 |
|
21 |
@app.route('/classify', methods = ['POST'])
|
22 |
def classify():
|
23 |
+
text = request.form['comment']
|
24 |
+
print(comment)
|
25 |
|
26 |
prediction = pipe(text)
|
27 |
labels = {"LABEL_0":"GULF", "LABEL_1":"LEVANT","LABEL_2":"EGYPT"}
|