Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ graph_config = {
|
|
| 29 |
|
| 30 |
|
| 31 |
def get_data(url):
|
| 32 |
-
smart_scraper_graph =
|
| 33 |
prompt=(
|
| 34 |
"List me all grants or funds with: "
|
| 35 |
"- Grant name/title\n"
|
|
@@ -42,7 +42,7 @@ def get_data(url):
|
|
| 42 |
"- Eligibility criteria\n"
|
| 43 |
"Return in JSON format."
|
| 44 |
),
|
| 45 |
-
|
| 46 |
config=graph_config,
|
| 47 |
)
|
| 48 |
return smart_scraper_graph.run()
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
def get_data(url):
|
| 32 |
+
smart_scraper_graph = SmartScraperGraph(
|
| 33 |
prompt=(
|
| 34 |
"List me all grants or funds with: "
|
| 35 |
"- Grant name/title\n"
|
|
|
|
| 42 |
"- Eligibility criteria\n"
|
| 43 |
"Return in JSON format."
|
| 44 |
),
|
| 45 |
+
source=url,
|
| 46 |
config=graph_config,
|
| 47 |
)
|
| 48 |
return smart_scraper_graph.run()
|