Spaces:
Sleeping
Sleeping
Commit ·
62b2af2
1
Parent(s): d1cfa81
hf configurations
Browse files- openenv.yaml +7 -7
- server/app.py +2 -7
openenv.yaml
CHANGED
|
@@ -2,14 +2,14 @@ spec_version: 1
|
|
| 2 |
name: code-review-env
|
| 3 |
version: "1.0.0"
|
| 4 |
description: >
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
author:
|
| 9 |
tasks:
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
sdk: gradio
|
| 14 |
sdk_version: "4.0"
|
| 15 |
type: space
|
|
|
|
| 2 |
name: code-review-env
|
| 3 |
version: "1.0.0"
|
| 4 |
description: >
|
| 5 |
+
A code review agent environment where an AI agent reads buggy Python code
|
| 6 |
+
and learns to identify security vulnerabilities, logic errors, and code smells.
|
| 7 |
+
Simulates the real-world software engineering task of pull request review.
|
| 8 |
+
author: Dolphin-Syndrom
|
| 9 |
tasks:
|
| 10 |
+
- task_easy
|
| 11 |
+
- task_medium
|
| 12 |
+
- task_hard
|
| 13 |
sdk: gradio
|
| 14 |
sdk_version: "4.0"
|
| 15 |
type: space
|
server/app.py
CHANGED
|
@@ -150,10 +150,5 @@ def main(host: str = "0.0.0.0", port: int = 8000):
|
|
| 150 |
uvicorn.run(app, host=host, port=port)
|
| 151 |
|
| 152 |
|
| 153 |
-
if __name__ ==
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
parser = argparse.ArgumentParser()
|
| 157 |
-
parser.add_argument("--port", type=int, default=8000)
|
| 158 |
-
args = parser.parse_args()
|
| 159 |
-
main(port=args.port)
|
|
|
|
| 150 |
uvicorn.run(app, host=host, port=port)
|
| 151 |
|
| 152 |
|
| 153 |
+
if __name__ == '__main__':
|
| 154 |
+
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|