Spaces:
Runtime error
Runtime error
Commit
·
fa6ddf9
1
Parent(s):
9cf59ea
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
|
| 5 |
-
from
|
| 6 |
import math
|
| 7 |
#from python_actr import *
|
| 8 |
#from cogscidighum import *
|
|
@@ -99,8 +99,8 @@ def delete_all_reviews():
|
|
| 99 |
reviews, total_reviews = get_latest_reviews(db)
|
| 100 |
db.close()
|
| 101 |
return reviews, total_reviews
|
| 102 |
-
def
|
| 103 |
-
response=
|
| 104 |
return response #result #soup.prettify()
|
| 105 |
|
| 106 |
with gr.Blocks() as demo:
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from bs4 import BeautifulSoup
|
| 3 |
import requests
|
| 4 |
+
from acogsphere import acs
|
| 5 |
+
from bcogsphere import bcs
|
| 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 acbc(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 |
|
| 106 |
with gr.Blocks() as demo:
|