Joseph Pollack commited on
Commit
93727c5
Β·
unverified Β·
1 Parent(s): b6663ce

removes zerogpu wierdness

Browse files
Files changed (2) hide show
  1. .gitignore +209 -1
  2. app.py +3 -45
.gitignore CHANGED
@@ -1 +1,209 @@
1
- ignore/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Existing ignore folder
2
+ ignore/
3
+
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # Distribution / packaging
13
+ .Python
14
+ build/
15
+ develop-eggs/
16
+ dist/
17
+ downloads/
18
+ eggs/
19
+ .eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ wheels/
26
+ share/python-wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+ MANIFEST
31
+
32
+ # PyInstaller
33
+ # Usually these files are written by a python script from a template
34
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
35
+ *.manifest
36
+ *.spec
37
+
38
+ # Installer logs
39
+ pip-log.txt
40
+ pip-delete-this-directory.txt
41
+
42
+ # Unit test / coverage reports
43
+ htmlcov/
44
+ .tox/
45
+ .nox/
46
+ .coverage
47
+ .coverage.*
48
+ .cache
49
+ nosetests.xml
50
+ coverage.xml
51
+ *.cover
52
+ *.py,cover
53
+ .hypothesis/
54
+ .pytest_cache/
55
+ cover/
56
+
57
+ # Translations
58
+ *.mo
59
+ *.pot
60
+
61
+ # Django stuff:
62
+ *.log
63
+ local_settings.py
64
+ db.sqlite3
65
+ db.sqlite3-journal
66
+
67
+ # Flask stuff:
68
+ instance/
69
+ .webassets-cache
70
+
71
+ # Scrapy stuff:
72
+ .scrapy
73
+
74
+ # Sphinx documentation
75
+ docs/_build/
76
+
77
+ # PyBuilder
78
+ .pybuilder/
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ # For a library or package, you might want to ignore these files since the code is
90
+ # intended to run in multiple environments; otherwise, check them in:
91
+ # .python-version
92
+
93
+ # pipenv
94
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
96
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
97
+ # install all needed dependencies.
98
+ #Pipfile.lock
99
+
100
+ # poetry
101
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
102
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
103
+ # commonly ignored for libraries.
104
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
105
+ #poetry.lock
106
+
107
+ # pdm
108
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
109
+ #pdm.lock
110
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
111
+ # in version control.
112
+ # https://pdm.fming.dev/#use-with-ide
113
+ .pdm.toml
114
+
115
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
116
+ __pypackages__/
117
+
118
+ # Celery stuff
119
+ celerybeat-schedule
120
+ celerybeat.pid
121
+
122
+ # SageMath parsed files
123
+ *.sage.py
124
+
125
+ # Environments
126
+ .env
127
+ .venv
128
+ env/
129
+ venv/
130
+ ENV/
131
+ env.bak/
132
+ venv.bak/
133
+
134
+ # Spyder project settings
135
+ .spyderproject
136
+ .spyproject
137
+
138
+ # Rope project settings
139
+ .ropeproject
140
+
141
+ # mkdocs documentation
142
+ /site
143
+
144
+ # mypy
145
+ .mypy_cache/
146
+ .dmypy.json
147
+ dmypy.json
148
+
149
+ # Pyre type checker
150
+ .pyre/
151
+
152
+ # pytype static type analyzer
153
+ .pytype/
154
+
155
+ # Cython debug symbols
156
+ cython_debug/
157
+
158
+ # PyCharm
159
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160
+ # be added to the global gitignore or merged into this project gitignore. For a PyCharm
161
+ # project, it is recommended to include the following files:
162
+ # .idea/
163
+ # *.iml
164
+ # *.ipr
165
+ # *.iws
166
+
167
+ # VS Code
168
+ .vscode/
169
+
170
+ # macOS
171
+ .DS_Store
172
+
173
+ # Windows
174
+ Thumbs.db
175
+ ehthumbs.db
176
+ Desktop.ini
177
+
178
+ # Linux
179
+ *~
180
+
181
+ # Temporary files
182
+ *.tmp
183
+ *.temp
184
+ *.swp
185
+ *.swo
186
+ *~
187
+
188
+ # IDE files
189
+ .idea/
190
+ *.iml
191
+ *.ipr
192
+ *.iws
193
+ .vscode/
194
+ *.code-workspace
195
+
196
+ # Logs
197
+ *.log
198
+ logs/
199
+
200
+ # Database files
201
+ *.db
202
+ *.sqlite
203
+ *.sqlite3
204
+
205
+ # Configuration files with sensitive data
206
+ config.ini
207
+ secrets.json
208
+ .env.local
209
+ .env.production
app.py CHANGED
@@ -257,26 +257,6 @@ def create_demo():
257
 
258
  with gr.Row():
259
  with gr.Column(scale=1):
260
- gr.Markdown("### πŸ”§ Model Control")
261
- load_btn = gr.Button("πŸš€ Load L-Operator Model", variant="primary", size="lg")
262
- load_status = gr.Textbox(label="Model Status", value="❌ Model not loaded", interactive=False)
263
-
264
- # ZeroGPU status indicator
265
- if ZEROGPU_AVAILABLE:
266
- gr.Markdown("### ⚑ ZeroGPU Status")
267
- gr.Markdown("🟒 **ZeroGPU Enabled**: Dynamic GPU allocation for cost-effective inference")
268
- else:
269
- gr.Markdown("### ⚑ ZeroGPU Status")
270
- gr.Markdown("🟑 **ZeroGPU Not Available**: Running in standard mode")
271
-
272
- # Token status indicator
273
- if HF_TOKEN:
274
- gr.Markdown("### πŸ” Authentication Status")
275
- gr.Markdown("🟒 **Token Available**: HF_TOKEN found in environment")
276
- else:
277
- gr.Markdown("### πŸ” Authentication Status")
278
- gr.Markdown("🟑 **Token Missing**: HF_TOKEN not found - set in Spaces secrets")
279
-
280
  gr.Markdown("### πŸ“± Input")
281
  image_input = gr.Image(
282
  label="Android Screenshot",
@@ -380,32 +360,10 @@ def create_demo():
380
  - **Accessibility Applications**: Voice-controlled device navigation
381
  - **Remote Support**: Remote device troubleshooting
382
  - **Development Workflows**: UI/UX testing automation
 
 
383
 
384
- ## ⚑ ZeroGPU Integration
385
-
386
- This demo is optimized for [Hugging Face Spaces ZeroGPU](https://huggingface.co/docs/hub/spaces-zerogpu), providing:
387
-
388
- - **Dynamic GPU Allocation**: NVIDIA H200 GPUs allocated on-demand
389
- - **Cost Efficiency**: Free GPU access with optimized resource utilization
390
- - **Multi-GPU Support**: Leverage multiple GPUs concurrently
391
- - **Automatic Management**: GPU resources released after function completion
392
-
393
- ### ZeroGPU Specifications
394
- - **GPU Type**: NVIDIA H200 slice
395
- - **Available VRAM**: 70GB per workload
396
- - **Supported Versions**: Gradio 4+, PyTorch 2.1.2/2.2.2/2.4.0/2.5.1, Python 3.10.13
397
-
398
- ## ⚠️ Important Notes
399
-
400
- - This model requires authentication with Hugging Face
401
- - Access is restricted to qualified investors under NDA
402
- - For investment evaluation purposes only
403
- - Model size: ~1.6B parameters, optimized for real-time use
404
- - **Token Authentication**: HF_TOKEN must be set in Spaces secrets for model access
405
-
406
- ---
407
-
408
- **Made with ❀️ by Tonic** | [Model on Hugging Face](https://huggingface.co/Tonic/l-android-control) | [ZeroGPU Documentation](https://huggingface.co/docs/hub/spaces-zerogpu)
409
  """)
410
 
411
  return demo
 
257
 
258
  with gr.Row():
259
  with gr.Column(scale=1):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  gr.Markdown("### πŸ“± Input")
261
  image_input = gr.Image(
262
  label="Android Screenshot",
 
360
  - **Accessibility Applications**: Voice-controlled device navigation
361
  - **Remote Support**: Remote device troubleshooting
362
  - **Development Workflows**: UI/UX testing automation
363
+
364
+ ---
365
 
366
+ **Made with ❀️ by Tonic** | [Model on Hugging Face](https://huggingface.co/Tonic/l-android-control)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  """)
368
 
369
  return demo