IamVicky111 commited on
Commit
6084635
·
verified ·
1 Parent(s): 9c93c4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
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("# Scrape websites, no-code version")
67
- gr.Markdown("""Easily scrape and summarize web content using advanced AI models on the Hugging Face Hub without writing any code. Input your desired prompt and source URL to get started.
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 press releases with their headlines and urls.")
75
- source_input = gr.Textbox(label="Source URL", value="https://www.whitehouse.gov/")
76
- scrape_button = gr.Button("Scrape and Summarize")
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")