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() |