chatworld / app.py
Arafath10's picture
Update app.py
c244ef2
raw
history blame contribute delete
373 Bytes
import gradio as gr
from googlesearch import search
import metadata_parser
def greet(name):
st = ""
query = "open ai"
for j in search(query,20):
page = metadata_parser.MetadataParser("www.google.com")
st = st + j+ str(page.metadata) +"\n\n"
return st
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()