Spaces:
Runtime error
Runtime error
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) |