File size: 499 Bytes
8894aa7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219b5ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)

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