competitive-app / app.py
Polo123's picture
Update app.py
ee693c6
raw
history blame contribute delete
516 Bytes
import pandas as pd
import gradio as gr
from steps.Bots import CompetitorBot
from steps.parse_website import ParseLink
def f(company_name: str):
# Load the input data
website,html = CompetitorBot().target_html(company_name)
print(html)
#Parse Website
html_tables = ParseLink(website,html).parse()
return html_tables
outputs = [
gr.Dataframe(),
]
# Create the Gradio app
iface = gr.Interface(fn=f, inputs="text", outputs=outputs, title="Competitor bot")
iface.launch(debug=True)