Spaces:
Runtime error
Runtime error
CognitiveScience
commited on
Commit
·
cbd2dc3
1
Parent(s):
8364b7f
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ from bs4 import BeautifulSoup
|
|
3 |
import requests
|
4 |
from youtube1 import getviews
|
5 |
from textsentiment import getresult
|
|
|
6 |
#from python_actr import *
|
7 |
#from cogscidighum import *
|
8 |
|
@@ -11,7 +12,7 @@ from textsentiment import getresult
|
|
11 |
# pass
|
12 |
|
13 |
def main(link):
|
14 |
-
response=getviews(link)+getresult("hello world")[0]["label"] + str.trunc(getresult("hello world")[0]["score"])
|
15 |
return response #result #soup.prettify()
|
16 |
|
17 |
|
|
|
3 |
import requests
|
4 |
from youtube1 import getviews
|
5 |
from textsentiment import getresult
|
6 |
+
import math
|
7 |
#from python_actr import *
|
8 |
#from cogscidighum import *
|
9 |
|
|
|
12 |
# pass
|
13 |
|
14 |
def main(link):
|
15 |
+
response=getviews(link)+getresult("hello world")[0]["label"] + str(math.trunc(getresult("hello world")[0]["score"]))
|
16 |
return response #result #soup.prettify()
|
17 |
|
18 |
|