nus-apr / auto-code-rover

A project structure aware autonomous software engineer aiming for autonomous program improvement. Resolved 30.67% tasks (pass@1) in SWE-bench lite and 38.40% tasks (pass@1) in SWE-bench verified with each task costs less than $0.7.
Other
2.67k stars 276 forks source link

add webUI demo #34

Closed h-summit closed 4 months ago

h-summit commented 5 months ago

I've developed a web UI using React and Flask, and I would like it to be considered for merging into the main branch. The primary modification I've made to the existing code involves adding an optional parameter to certain functions:

print_callback: Optional[Callable[[Dict], None]] = None

This parameter has been introduced in the print_patch_generation, print_acr, and print_retrieval functions. If set, this callback function is used to direct output back to the Flask server.

https://github.com/nus-apr/auto-code-rover/assets/45748016/9913cbc6-f028-4130-81a1-d501128e1b9e

yuntongzhang commented 5 months ago

Thank you, this looks great. I will test it these two days and merge it afterwards.

h-summit commented 5 months ago

Certainly. I've addressed these issues. print_callback:Optional[Callable[[Dict], None]] = None has been modified to print_callback:Callable[[dict], None] | None = None. The Dockerfile now ensures that the workspace is set to /opt/auto_code_hover and run.sh has been updated to handle kill signals.