File size: 360 Bytes
405af5a
 
 
17f8c84
1cb4f86
209d0f4
63666cb
71e0f1f
1cb4f86
 
63666cb
1cb4f86
 
405af5a
1cb4f86
405af5a
 
17f8c84
405af5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()