Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -63,17 +63,15 @@ def scrape_and_summarize(prompt, source):
|
|
63 |
|
64 |
# Gradio interface
|
65 |
with gr.Blocks() as demo:
|
66 |
-
gr.Markdown("
|
67 |
-
gr.Markdown("""
|
68 |
-
This is a no-code version of the excellent lib [ScrapeGraphAI](https://github.com/VinciGit00/Scrapegraph-ai).
|
69 |
-
It's a basic demo and a work in progress. Please contribute to it to make it more useful!""")
|
70 |
|
71 |
with gr.Row():
|
72 |
with gr.Column():
|
73 |
model_dropdown = gr.Textbox(label="Model", value="Mistral-7B-Instruct-v0.2")
|
74 |
-
prompt_input = gr.Textbox(label="Prompt", value="List me all the
|
75 |
-
source_input = gr.Textbox(label="Source URL", value="https://www.
|
76 |
-
scrape_button = gr.Button("
|
77 |
|
78 |
with gr.Column():
|
79 |
result_output = gr.JSON(label="Result")
|
|
|
63 |
|
64 |
# Gradio interface
|
65 |
with gr.Blocks() as demo:
|
66 |
+
gr.Markdown("Websites Scraper using Mistral AI")
|
67 |
+
gr.Markdown("""This is a no code ML app for scraping <br> 1. Just provide the Prompt, ie., the items you wanna Scrap from the website <br> 2. Provide the url for the site you wanna Scrap, click Generate<br> And BOOM 💥 you can copy the result and view the execution details in the right side pannel """)
|
|
|
|
|
68 |
|
69 |
with gr.Row():
|
70 |
with gr.Column():
|
71 |
model_dropdown = gr.Textbox(label="Model", value="Mistral-7B-Instruct-v0.2")
|
72 |
+
prompt_input = gr.Textbox(label="Prompt", value="List me all the hospital or clinic names and their opening closing time, if the mobile number is present provide it too.")
|
73 |
+
source_input = gr.Textbox(label="Source URL", value="https://www.yelp.com/biz/all-smiles-dental-san-francisco-5?osq=dentist")
|
74 |
+
scrape_button = gr.Button("Generate")
|
75 |
|
76 |
with gr.Column():
|
77 |
result_output = gr.JSON(label="Result")
|