Skip to content

Fix for scan_research.py : SyntaxError: f-string expression part cannot include a backslash #6

@codeisnotcode

Description

@codeisnotcode

Error of:
...nvlabs/UniversalDeepResearch/backend/scan_research.py", line 507
for topic, segments in topic_relevant_segments.items()
^^^
SyntaxError: f-string expression part cannot include a backslash

The fix is to change line 507 in scan_research.py from:
f"Topic: {topic}\n{'\n'.join(segments)}"
to
f"Topic: {topic}\n{chr(10).join(segments)}"

I can't do a PR on this computer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions