Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -359,7 +359,7 @@ def search_solutions_for_pairs(problem_description, top_pairs):
|
|
| 359 |
# Keep problem description out of the API query unless the API is designed for it
|
| 360 |
# query = f'"{tech_a_name}" AND "{tech_b_name}" patent OR research paper OR application'
|
| 361 |
# More targeted query:
|
| 362 |
-
query = f'Combining
|
| 363 |
|
| 364 |
params = {
|
| 365 |
'query': query,
|
|
@@ -532,7 +532,7 @@ def process_problem(problem_description):
|
|
| 532 |
f"{category_output}\n\n"
|
| 533 |
f"{tech_output}"
|
| 534 |
# Only show pairs if they were found
|
| 535 |
-
f"{pairs_output if top_pairs else 'No technology pairs identified to search with
|
| 536 |
f"{solution_output}"
|
| 537 |
)
|
| 538 |
|
|
|
|
| 359 |
# Keep problem description out of the API query unless the API is designed for it
|
| 360 |
# query = f'"{tech_a_name}" AND "{tech_b_name}" patent OR research paper OR application'
|
| 361 |
# More targeted query:
|
| 362 |
+
query = f'Combining {tech_a_name} and {tech_b_name} for applications related to {problem_description}...' # Use snippet of problem
|
| 363 |
|
| 364 |
params = {
|
| 365 |
'query': query,
|
|
|
|
| 532 |
f"{category_output}\n\n"
|
| 533 |
f"{tech_output}"
|
| 534 |
# Only show pairs if they were found
|
| 535 |
+
f"{pairs_output if top_pairs else 'No technology pairs identified to search with.|\n|\n---|\n'}"
|
| 536 |
f"{solution_output}"
|
| 537 |
)
|
| 538 |
|