Spaces:
Runtime error
Runtime error
Refactor project structure and update configurations
Browse filesMoved application files to a standardized directory structure for better organization. Adjusted imports, project dependencies, and configuration files to reflect the changes. Removed the obsolete `main.py` and added pytest configurations for improved testing.
- README.md +1 -1
- main.py +0 -6
- pyproject.toml +3 -0
- requirements.txt +0 -0
- app.py β src/gaia_solving_agent/app.py +7 -2
README.md
CHANGED
|
@@ -5,7 +5,7 @@ colorFrom: red
|
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.25.2
|
| 8 |
-
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
hf_oauth: true
|
| 11 |
# optional, default duration is 8 hours/480 minutes. Max duration is 30 days/43200 minutes.
|
|
|
|
| 5 |
colorTo: yellow
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.25.2
|
| 8 |
+
app_file: src/gaia_solving_agent/app.py
|
| 9 |
pinned: false
|
| 10 |
hf_oauth: true
|
| 11 |
# optional, default duration is 8 hours/480 minutes. Max duration is 30 days/43200 minutes.
|
main.py
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
def main():
|
| 2 |
-
print("Hello from agent-course-final-assignment!")
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
if __name__ == "__main__":
|
| 6 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pyproject.toml
CHANGED
|
@@ -10,3 +10,6 @@ dependencies = [
|
|
| 10 |
"llama-index-llms-huggingface-api>=0.5.0",
|
| 11 |
"requests>=2.32.4",
|
| 12 |
]
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"llama-index-llms-huggingface-api>=0.5.0",
|
| 11 |
"requests>=2.32.4",
|
| 12 |
]
|
| 13 |
+
|
| 14 |
+
[tool.pytest.ini_options]
|
| 15 |
+
pythonpath = ["config", "packages/src", "services"]
|
requirements.txt
CHANGED
|
Binary files a/requirements.txt and b/requirements.txt differ
|
|
|
app.py β src/gaia_solving_agent/app.py
RENAMED
|
@@ -1,8 +1,13 @@
|
|
| 1 |
import os
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
from
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 8 |
"""
|
|
|
|
| 1 |
import os
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
from .hf_submission_api import (
|
| 5 |
+
instantiate_agent,
|
| 6 |
+
fetching_questions,
|
| 7 |
+
run_agent,
|
| 8 |
+
prepare_submission_data,
|
| 9 |
+
submit_answers,
|
| 10 |
+
)
|
| 11 |
|
| 12 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
| 13 |
"""
|