abelenguerv commited on
Commit
5cecaff
·
1 Parent(s): e644e3f

Add uv dependency management

Browse files
Files changed (6) hide show
  1. .gitignore +6 -0
  2. .python-version +1 -0
  3. README.md +26 -1
  4. pyproject.toml +14 -0
  5. requirements.txt +168 -2
  6. uv.lock +0 -0
.gitignore ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ .venv/
2
+ .env
3
+ __pycache__/
4
+ *.py[cod]
5
+ .ruff_cache/
6
+ .pytest_cache/
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.11
README.md CHANGED
@@ -12,4 +12,29 @@ hf_oauth: true
12
  hf_oauth_expiration_minutes: 480
13
  ---
14
 
15
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  hf_oauth_expiration_minutes: 480
13
  ---
14
 
15
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
16
+
17
+ ## Local development
18
+
19
+ This project uses `uv` for the local isolated environment and keeps
20
+ `requirements.txt` for Hugging Face Spaces deployment.
21
+
22
+ Create or update the local environment:
23
+
24
+ ```bash
25
+ uv sync
26
+ ```
27
+
28
+ Run the Gradio app locally:
29
+
30
+ ```bash
31
+ uv run python app.py
32
+ ```
33
+
34
+ After changing dependencies in `pyproject.toml`, refresh the Space
35
+ requirements file:
36
+
37
+ ```bash
38
+ uv lock
39
+ uv export --format requirements-txt --no-hashes --output-file requirements.txt
40
+ ```
pyproject.toml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "final-assignment-template"
3
+ version = "0.1.0"
4
+ description = "Gradio Space for the agent evaluation final assignment."
5
+ readme = "README.md"
6
+ requires-python = ">=3.11,<3.13"
7
+ dependencies = [
8
+ "gradio==5.25.2",
9
+ "pandas",
10
+ "requests",
11
+ ]
12
+
13
+ [tool.uv]
14
+ package = false
requirements.txt CHANGED
@@ -1,2 +1,168 @@
1
- gradio
2
- requests
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file was autogenerated by uv via the following command:
2
+ # uv export --format requirements-txt --no-hashes --output-file requirements.txt
3
+ aiofiles==24.1.0
4
+ # via gradio
5
+ annotated-doc==0.0.4
6
+ # via
7
+ # fastapi
8
+ # typer
9
+ annotated-types==0.7.0
10
+ # via pydantic
11
+ anyio==4.13.0
12
+ # via
13
+ # gradio
14
+ # httpx
15
+ # starlette
16
+ certifi==2026.5.20
17
+ # via
18
+ # httpcore
19
+ # httpx
20
+ # requests
21
+ charset-normalizer==3.4.7
22
+ # via requests
23
+ click==8.4.1
24
+ # via
25
+ # huggingface-hub
26
+ # typer
27
+ # uvicorn
28
+ colorama==0.4.6 ; sys_platform == 'win32'
29
+ # via
30
+ # click
31
+ # tqdm
32
+ fastapi==0.136.3
33
+ # via gradio
34
+ ffmpy==1.0.0
35
+ # via gradio
36
+ filelock==3.29.3
37
+ # via huggingface-hub
38
+ fsspec==2026.4.0
39
+ # via
40
+ # gradio-client
41
+ # huggingface-hub
42
+ gradio==5.25.2
43
+ # via final-assignment-template
44
+ gradio-client==1.8.0
45
+ # via gradio
46
+ groovy==0.1.2
47
+ # via gradio
48
+ h11==0.16.0
49
+ # via
50
+ # httpcore
51
+ # uvicorn
52
+ hf-xet==1.5.1 ; platform_machine == 'AMD64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'
53
+ # via huggingface-hub
54
+ httpcore==1.0.9
55
+ # via httpx
56
+ httpx==0.28.1
57
+ # via
58
+ # gradio
59
+ # gradio-client
60
+ # huggingface-hub
61
+ # safehttpx
62
+ huggingface-hub==1.19.0
63
+ # via
64
+ # gradio
65
+ # gradio-client
66
+ idna==3.18
67
+ # via
68
+ # anyio
69
+ # httpx
70
+ # requests
71
+ jinja2==3.1.6
72
+ # via gradio
73
+ markdown-it-py==4.2.0
74
+ # via rich
75
+ markupsafe==3.0.3
76
+ # via
77
+ # gradio
78
+ # jinja2
79
+ mdurl==0.1.2
80
+ # via markdown-it-py
81
+ numpy==2.4.6
82
+ # via
83
+ # gradio
84
+ # pandas
85
+ orjson==3.11.9
86
+ # via gradio
87
+ packaging==26.2
88
+ # via
89
+ # gradio
90
+ # gradio-client
91
+ # huggingface-hub
92
+ pandas==2.3.3
93
+ # via
94
+ # final-assignment-template
95
+ # gradio
96
+ pillow==11.3.0
97
+ # via gradio
98
+ pydantic==2.11.10
99
+ # via
100
+ # fastapi
101
+ # gradio
102
+ pydantic-core==2.33.2
103
+ # via pydantic
104
+ pydub==0.25.1
105
+ # via gradio
106
+ pygments==2.20.0
107
+ # via rich
108
+ python-dateutil==2.9.0.post0
109
+ # via pandas
110
+ python-multipart==0.0.32
111
+ # via gradio
112
+ pytz==2026.2
113
+ # via pandas
114
+ pyyaml==6.0.3
115
+ # via
116
+ # gradio
117
+ # huggingface-hub
118
+ requests==2.34.2
119
+ # via final-assignment-template
120
+ rich==15.0.0
121
+ # via typer
122
+ ruff==0.15.16 ; sys_platform != 'emscripten'
123
+ # via gradio
124
+ safehttpx==0.1.7
125
+ # via gradio
126
+ semantic-version==2.10.0
127
+ # via gradio
128
+ shellingham==1.5.4
129
+ # via typer
130
+ six==1.17.0
131
+ # via python-dateutil
132
+ starlette==0.52.1
133
+ # via
134
+ # fastapi
135
+ # gradio
136
+ tomlkit==0.13.3
137
+ # via gradio
138
+ tqdm==4.68.2
139
+ # via huggingface-hub
140
+ typer==0.25.1
141
+ # via
142
+ # gradio
143
+ # huggingface-hub
144
+ typing-extensions==4.15.0
145
+ # via
146
+ # anyio
147
+ # fastapi
148
+ # gradio
149
+ # gradio-client
150
+ # huggingface-hub
151
+ # pydantic
152
+ # pydantic-core
153
+ # starlette
154
+ # typing-inspection
155
+ typing-inspection==0.4.2
156
+ # via
157
+ # fastapi
158
+ # pydantic
159
+ tzdata==2026.2
160
+ # via pandas
161
+ urllib3==2.7.0
162
+ # via
163
+ # gradio
164
+ # requests
165
+ uvicorn==0.49.0 ; sys_platform != 'emscripten'
166
+ # via gradio
167
+ websockets==15.0.1
168
+ # via gradio-client
uv.lock ADDED
The diff for this file is too large to render. See raw diff