import gradio as gr from bs4 import BeautifulSoup import requests from youtube1 import getviews from textsentiment import getresult import math #from python_actr import * #from cogscidighum import * #class myCelSci(Model): # pass def main(link): response=getviews(link)+getresult("hello world")[0]["label"] + str(math.trunc(getresult("hello world")[0]["score"])) return response #result #soup.prettify() iface = gr.Interface(fn=main, inputs="text", outputs="text") iface.launch()