Spaces:
Runtime error
Runtime error
Commit
·
91256a5
1
Parent(s):
b3d1323
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
-
from
|
3 |
-
import requests
|
4 |
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
response = requests.get(inp) #, headers=HEADER)
|
9 |
-
soup = BeautifulSoup(response.text, "html.parser")
|
10 |
-
|
11 |
-
bcsresult=response.text[response.text.find("viewCount"):].split('"')[2]
|
12 |
-
|
13 |
-
return bcsresult #soup.prettify()
|
14 |
-
|
15 |
-
|
16 |
-
iface = gr.Interface(fn=bcs, inputs="text", outputs="text")
|
17 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
from ccogsphere import ccs
|
|
|
3 |
|
4 |
|
5 |
+
iface = gr.Interface(fn=ccs, inputs="text", outputs="text")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
iface.launch()
|