heymenn commited on
Commit
2625899
·
verified ·
1 Parent(s): 06cfe93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 "{tech_a_name}" and "{tech_b_name}" for applications related to "{problem_description[:100]}..."' # Use snippet of problem
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.\\n\\n---\\n'}"
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