Spaces:
Runtime error
Runtime error
CognitiveScience
commited on
Commit
·
1099c3e
1
Parent(s):
c39cc72
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from bs4 import BeautifulSoup
|
3 |
import requests
|
4 |
-
from acogsphere import
|
5 |
-
from bcogsphere import
|
6 |
import math
|
7 |
#from python_actr import *
|
8 |
#from cogscidighum import *
|
@@ -99,7 +99,7 @@ def delete_all_reviews():
|
|
99 |
reviews, total_reviews = get_latest_reviews(db)
|
100 |
db.close()
|
101 |
return reviews, total_reviews
|
102 |
-
def
|
103 |
response=acf("hello world")[0]["label"] + str(math.trunc(acf("hello world")[0]["score"])*100/100)+bcf(link)
|
104 |
return response #result #soup.prettify()
|
105 |
|
|
|
1 |
import gradio as gr
|
2 |
from bs4 import BeautifulSoup
|
3 |
import requests
|
4 |
+
from acogsphere import acf
|
5 |
+
from bcogsphere import bcf
|
6 |
import math
|
7 |
#from python_actr import *
|
8 |
#from cogscidighum import *
|
|
|
99 |
reviews, total_reviews = get_latest_reviews(db)
|
100 |
db.close()
|
101 |
return reviews, total_reviews
|
102 |
+
def cs(link):
|
103 |
response=acf("hello world")[0]["label"] + str(math.trunc(acf("hello world")[0]["score"])*100/100)+bcf(link)
|
104 |
return response #result #soup.prettify()
|
105 |
|