CogSphere / app.py
CognitiveScience's picture
Update app.py
17f8c84
raw
history blame
360 Bytes
import gradio as gr
from bs4 import BeautifulSoup
import requests
from youtube1 import getviews
#from python_actr import *
#from cogscidighum import *
#class myCelSci(Model):
# pass
def main(link):
response=getviews(link)
return response #result #soup.prettify()
iface = gr.Interface(fn=main, inputs="text", outputs="text")
iface.launch()