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