Spaces:
Runtime error
Runtime error
Update app.py
Browse files358 unmodified lines359360361362363364365166 unmodified lines532533534535536537538358 unmodified lines# Keep problem description out of the API query unless the API is designed for it# query = f'"{tech_a_name}" AND "{tech_b_name}" patent OR research paper OR application'# More targeted query:query = f'Combining "{tech_a_name}" and "{tech_b_name}" for applications related to "{problem_description[:100]}..."' # Use snippet of problemparams = {'query': query,166 unmodified linesf"{category_output}\n\n"f"{tech_output}"# Only show pairs if they were foundf"{pairs_output if top_pairs else 'No technology pairs identified to search with.\\n\\n---\\n'}"f"{solution_output}")358 unmodified lines359360361362363364365166 unmodified lines532533534535536537538358 unmodified lines# Keep problem description out of the API query unless the API is designed for it# query = f'"{tech_a_name}" AND "{tech_b_name}" patent OR research paper OR application'# More targeted query:query = f'Combining {tech_a_name} and {tech_b_name} for applications related to {problem_description}...' # Use snippet of problemparams = {'query': query,166 unmodified linesf"{category_output}\n\n"f"{tech_output}"# Only show pairs if they were foundf"{pairs_output if top_pairs else 'No technology pairs identified to search with.|\n|\n---|\n'}"f"{solution_output}")
app.py+2-2