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