Spaces:
Runtime error
Runtime error
MahmoudNasser
commited on
Commit
•
7110d08
1
Parent(s):
95dabf2
Update main.py
Browse files
main.py
CHANGED
@@ -174,7 +174,7 @@ def modelsummary(data):
|
|
174 |
result = remove_punctuations(result)
|
175 |
return { 'summary':result}
|
176 |
|
177 |
-
def
|
178 |
map = {0:'anger', 1:'sadness', 2:'joy', 3:'surprise', 4:'love', 5:'sympathy', 6:'fear'}
|
179 |
text = txt_preprocess(data)
|
180 |
pred=model.predict(pd.Series([data]))
|
|
|
174 |
result = remove_punctuations(result)
|
175 |
return { 'summary':result}
|
176 |
|
177 |
+
def modelpredict(data):
|
178 |
map = {0:'anger', 1:'sadness', 2:'joy', 3:'surprise', 4:'love', 5:'sympathy', 6:'fear'}
|
179 |
text = txt_preprocess(data)
|
180 |
pred=model.predict(pd.Series([data]))
|