Nav3005 commited on
Commit
82c1620
·
verified ·
1 Parent(s): cc88f15

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +34 -0
  2. requirements.txt +497 -0
app.py ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+ import shutil
4
+ import uuid
5
+
6
+ def generate_temp_url(file):
7
+ if file is None:
8
+ return None, "❌ No file uploaded"
9
+
10
+ # Create a unique filename to avoid collisions
11
+ file_id = str(uuid.uuid4())
12
+ file_path = os.path.join(f"{file_id}_{os.path.basename(file.name)}")
13
+
14
+ shutil.copy(file.name, file_path)
15
+
16
+ return file_path, "File uploaded"
17
+
18
+ with gr.Blocks(title="temp_url_generator") as app:
19
+ gr.Markdown("## Upload a file")
20
+
21
+ file_input = gr.File(label="Upload your file")
22
+ upload_btn = gr.Button("upload file")
23
+
24
+ file_output = gr.File(label="Download File")
25
+ status = gr.Textbox(label="Status", interactive=False)
26
+
27
+ upload_btn.click(
28
+ fn=generate_temp_url,
29
+ inputs=file_input,
30
+ outputs=[file_output, status]
31
+ )
32
+
33
+ if __name__ == "__main__":
34
+ app.launch()
requirements.txt ADDED
@@ -0,0 +1,497 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ a2wsgi==1.10.8
2
+ absl-py==2.1.0
3
+ absolufy-imports==0.3.1
4
+ accelerate==1.2.1
5
+ aenum==3.1.15
6
+ aiofiles==24.1.0
7
+ aiohappyeyeballs==2.4.4
8
+ aiohttp==3.10.11
9
+ aiohttp-retry==2.8.3
10
+ aiosignal==1.3.1
11
+ aiosqlite==0.21.0
12
+ alembic==1.17.0
13
+ altair==5.4.1
14
+ annotated-types==0.7.0
15
+ anthropic==0.71.0
16
+ antlr4-python3-runtime==4.9.3
17
+ anyio==4.11.0
18
+ appdirs==1.4.4
19
+ appnope==0.1.4
20
+ arrow==1.3.0
21
+ asgiref==3.8.1
22
+ asttokens==3.0.0
23
+ astunparse==1.6.3
24
+ attrs==23.2.0
25
+ Authlib==1.6.5
26
+ av==11.0.0
27
+ backoff==2.2.1
28
+ bcrypt==4.2.0
29
+ beautifulsoup4==4.14.2
30
+ bentoml==1.4.10
31
+ bio==1.8.0
32
+ biopython==1.85
33
+ biothings_client==0.4.1
34
+ blinker==1.9.0
35
+ Boruta==0.4.3
36
+ brotli==1.2.0
37
+ browserbase==1.4.0
38
+ build==1.2.1
39
+ cachetools==5.5.0
40
+ cartesia==1.0.14
41
+ category_encoders==2.8.0
42
+ cattrs==23.1.2
43
+ certifi==2024.6.2
44
+ cffi==1.17.1
45
+ cfgv==3.4.0
46
+ chardet==5.2.0
47
+ charset-normalizer==3.3.2
48
+ chroma-hnswlib==0.7.6
49
+ chromadb==1.1.1
50
+ click==8.3.0
51
+ click-option-group==0.5.7
52
+ cloudpickle==3.1.1
53
+ coloredlogs==15.0.1
54
+ comm==0.2.2
55
+ constants==0.6.0
56
+ contourpy==1.3.1
57
+ crewai==0.203.1
58
+ crewai-tools==0.76.0
59
+ cryptography==44.0.0
60
+ ctgan==0.11.0
61
+ ctranslate2==4.5.0
62
+ cycler==0.12.1
63
+ dataclasses-json==0.6.7
64
+ debugpy==1.8.11
65
+ decorator==5.1.1
66
+ deepgram-sdk==3.3.1
67
+ defusedxml==0.7.1
68
+ Deprecated==1.2.14
69
+ deprecation==2.1.0
70
+ dirtyjson==1.0.8
71
+ diskcache==5.6.3
72
+ distlib==0.3.9
73
+ distro==1.9.0
74
+ Django==5.2.4
75
+ dnspython==2.7.0
76
+ docker==7.1.0
77
+ dockerpty==0.4.1
78
+ docopt==0.6.2
79
+ docstring_parser==0.16
80
+ durationpy==0.9
81
+ dython==0.7.7
82
+ effdet==0.4.1
83
+ email-validator==2.3.0
84
+ emoji==2.14.0
85
+ et_xmlfile==2.0.0
86
+ ete3==3.1.3
87
+ eval_type_backport==0.2.0
88
+ executing==2.1.0
89
+ faiss-cpu==1.9.0.post1
90
+ Faker==37.0.2
91
+ fastapi==0.119.0
92
+ faster-whisper==1.0.0
93
+ fastjsonschema==2.21.1
94
+ ffmpeg==1.4
95
+ ffmpy==1.0.0
96
+ filelock==3.15.4
97
+ filetype==1.2.0
98
+ Flask==3.1.0
99
+ flatbuffers==24.3.25
100
+ flexcache==0.3
101
+ flexparser==0.4
102
+ fontawesomefree==6.6.0
103
+ fonttools==4.55.3
104
+ frozenlist==1.4.1
105
+ fs==2.4.16
106
+ fsspec==2024.9.0
107
+ future==1.0.0
108
+ gast==0.6.0
109
+ gensim==4.3.3
110
+ gitdb==4.0.11
111
+ GitPython==3.1.7
112
+ google-adk==1.16.0
113
+ google-ai-generativelanguage==0.6.15
114
+ google-api-core==2.24.0
115
+ google-api-python-client==2.164.0
116
+ google-auth==2.34.0
117
+ google-auth-httplib2==0.2.0
118
+ google-auth-oauthlib==1.2.2
119
+ google-cloud-aiplatform==1.121.0
120
+ google-cloud-appengine-logging==1.7.0
121
+ google-cloud-audit-log==0.4.0
122
+ google-cloud-bigquery==3.38.0
123
+ google-cloud-bigtable==2.33.0
124
+ google-cloud-core==2.4.3
125
+ google-cloud-discoveryengine==0.13.12
126
+ google-cloud-logging==3.12.1
127
+ google-cloud-monitoring==2.28.0
128
+ google-cloud-resource-manager==1.14.2
129
+ google-cloud-secret-manager==2.25.0
130
+ google-cloud-spanner==3.58.0
131
+ google-cloud-speech==2.33.0
132
+ google-cloud-storage==2.19.0
133
+ google-cloud-trace==1.16.2
134
+ google-cloud-vision==3.9.0
135
+ google-crc32c==1.7.1
136
+ google-genai==1.45.0
137
+ google-generativeai==0.8.4
138
+ google-pasta==0.2.0
139
+ google-resumable-media==2.7.2
140
+ googleapis-common-protos==1.65.0
141
+ gprofiler-official==1.0.0
142
+ gradio==6.4.0
143
+ gradio_client==2.0.3
144
+ graphviz==0.21
145
+ greenlet==3.1.1
146
+ groovy==0.1.2
147
+ groq==0.11.0
148
+ grpc-google-iam-v1==0.14.3
149
+ grpc-interceptor==0.15.4
150
+ grpcio==1.68.1
151
+ grpcio-status==1.62.3
152
+ h11==0.14.0
153
+ h5py==3.13.0
154
+ hf-xet==1.2.0
155
+ html5lib==1.1
156
+ httpcore==1.0.5
157
+ httplib2==0.22.0
158
+ httptools==0.7.1
159
+ httpx==0.28.1
160
+ httpx-sse==0.4.0
161
+ httpx-ws==0.7.2
162
+ huggingface_hub==1.3.3
163
+ humanfriendly==10.0
164
+ identify==2.6.9
165
+ idna==3.7
166
+ IMAPClient==3.0.1
167
+ importlib_metadata==8.4.0
168
+ importlib_resources==6.4.4
169
+ iniconfig==2.1.0
170
+ instructor==1.11.3
171
+ iopath==0.1.10
172
+ ipykernel==6.29.5
173
+ ipython==8.31.0
174
+ ipywidgets==8.1.5
175
+ iterators==0.2.0
176
+ itsdangerous==2.2.0
177
+ jedi==0.19.2
178
+ Jinja2==3.1.4
179
+ jiter==0.8.0
180
+ joblib==1.4.2
181
+ json5==0.12.1
182
+ json_repair==0.25.2
183
+ jsonargparse==4.40.0
184
+ jsonpatch==1.33
185
+ jsonpath-python==1.0.6
186
+ jsonpickle==4.1.1
187
+ jsonpointer==3.0.0
188
+ jsonref==1.1.0
189
+ jsonschema==4.23.0
190
+ jsonschema-specifications==2023.12.1
191
+ jupyter_client==8.6.3
192
+ jupyter_core==5.7.2
193
+ jupyterlab_widgets==3.0.13
194
+ kagglehub==0.3.8
195
+ kantoku==0.18.3
196
+ keras==3.8.0
197
+ kiwisolver==1.4.7
198
+ kubernetes==31.0.0
199
+ lance-namespace==0.0.18
200
+ lance-namespace-urllib3-client==0.0.18
201
+ lancedb==0.25.2
202
+ langchain==0.3.27
203
+ langchain-anthropic==0.3.22
204
+ langchain-community==0.3.31
205
+ langchain-core==0.3.79
206
+ langchain-google-genai==2.0.10
207
+ langchain-groq==0.2.2
208
+ langchain-openai==0.2.14
209
+ langchain-text-splitters==0.3.11
210
+ langdetect==1.0.9
211
+ langsmith==0.4.37
212
+ layoutparser==0.3.4
213
+ libclang==18.1.1
214
+ libmagic==1.0
215
+ lightning==2.5.2
216
+ lightning-utilities==0.14.3
217
+ litellm==1.74.9
218
+ litgpt==0.5.9
219
+ llama-cloud==0.1.7
220
+ llama-index==0.12.8
221
+ llama-index-agent-openai==0.3.1
222
+ llama-index-cli==0.3.0
223
+ llama-index-core==0.12.8
224
+ llama-index-embeddings-huggingface==0.4.0
225
+ llama-index-embeddings-openai==0.2.4
226
+ llama-index-indices-managed-llama-cloud==0.3.0
227
+ llama-index-legacy==0.9.48.post3
228
+ llama-index-llms-huggingface==0.4.1
229
+ llama-index-llms-ollama==0.5.0
230
+ llama-index-llms-openai==0.2.3
231
+ llama-index-multi-modal-llms-openai==0.2.0
232
+ llama-index-program-openai==0.2.0
233
+ llama-index-question-gen-openai==0.2.0
234
+ llama-index-readers-file==0.2.1
235
+ llama-index-readers-llama-parse==0.3.0
236
+ llama-index-vector-stores-chroma==0.4.1
237
+ llama-index-vector-stores-faiss==0.2.1
238
+ llama-parse==0.5.18
239
+ llvmlite==0.44.0
240
+ loguru==0.7.3
241
+ lxml==5.3.0
242
+ Mako==1.3.10
243
+ Markdown==3.7
244
+ markdown-it-py==3.0.0
245
+ MarkupSafe==2.1.5
246
+ marshmallow==3.21.3
247
+ matplotlib==3.10.0
248
+ matplotlib-inline==0.1.7
249
+ mcp==1.18.0
250
+ mdurl==0.1.2
251
+ minijinja==2.5.0
252
+ missingno==0.5.2
253
+ ml-dtypes==0.4.1
254
+ mmh3==4.1.0
255
+ monotonic==1.6
256
+ mpmath==1.3.0
257
+ multidict==6.0.5
258
+ mygene==3.2.2
259
+ mypy-extensions==1.0.0
260
+ namex==0.0.8
261
+ narwhals==1.27.1
262
+ nbformat==5.10.4
263
+ nest-asyncio==1.6.0
264
+ networkx==3.3
265
+ nltk==3.9.1
266
+ nodeenv==1.9.1
267
+ numba==0.61.2
268
+ numpy==1.26.4
269
+ nvidia-ml-py==12.570.86
270
+ oauthlib==3.2.2
271
+ observable==0.3.2
272
+ olefile==0.47
273
+ ollama==0.4.4
274
+ omegaconf==2.3.0
275
+ onnx==1.17.0
276
+ onnxruntime==1.19.2
277
+ openai==1.109.1
278
+ opencv-python==4.10.0.84
279
+ openpyxl==3.1.5
280
+ opentelemetry-api==1.37.0
281
+ opentelemetry-exporter-gcp-logging==1.10.0a0
282
+ opentelemetry-exporter-gcp-monitoring==1.10.0a0
283
+ opentelemetry-exporter-gcp-trace==1.10.0
284
+ opentelemetry-exporter-otlp-proto-common==1.37.0
285
+ opentelemetry-exporter-otlp-proto-grpc==1.38.0
286
+ opentelemetry-exporter-otlp-proto-http==1.37.0
287
+ opentelemetry-instrumentation==0.53b1
288
+ opentelemetry-instrumentation-aiohttp-client==0.53b1
289
+ opentelemetry-instrumentation-asgi==0.53b1
290
+ opentelemetry-instrumentation-fastapi==0.48b0
291
+ opentelemetry-proto==1.37.0
292
+ opentelemetry-resourcedetector-gcp==1.10.0a0
293
+ opentelemetry-sdk==1.37.0
294
+ opentelemetry-semantic-conventions==0.58b0
295
+ opentelemetry-util-http==0.53b1
296
+ opt_einsum==3.4.0
297
+ optree==0.14.0
298
+ orjson==3.10.7
299
+ overrides==7.7.0
300
+ packaging==25.0
301
+ pandas==2.2.2
302
+ pandoc==2.4
303
+ parso==0.8.4
304
+ pathspec==0.12.1
305
+ patsy==1.0.1
306
+ pdf2image==1.17.0
307
+ pdfminer.six==20231228
308
+ pdfplumber==0.11.4
309
+ pexpect==4.9.0
310
+ pi_heif==0.21.0
311
+ pikepdf==9.4.2
312
+ pillow==10.4.0
313
+ Pint==0.24.4
314
+ pip-requirements-parser==32.0.1
315
+ pipecat==0.3.0
316
+ pipecat-ai==0.0.43
317
+ platformdirs==4.3.6
318
+ playwright==1.55.0
319
+ plotly==6.0.0
320
+ pluggy==1.5.0
321
+ plumbum==1.9.0
322
+ ply==3.11
323
+ pooch==1.8.2
324
+ popper==2020.9.1
325
+ portalocker==2.7.0
326
+ posthog==3.6.3
327
+ pre-commit==3.8.0
328
+ prometheus_client==0.21.1
329
+ prompt_toolkit==3.0.48
330
+ propcache==0.2.1
331
+ proto-plus==1.25.0
332
+ protobuf==5.29.5
333
+ psutil==7.0.0
334
+ psycopg2==2.9.10
335
+ ptyprocess==0.7.0
336
+ pure_eval==0.2.3
337
+ py-cpuinfo==9.0.0
338
+ pyarrow==17.0.0
339
+ pyasn1==0.6.0
340
+ pyasn1_modules==0.4.0
341
+ PyAudio==0.2.14
342
+ pybase64==1.4.2
343
+ pycocotools==2.0.8
344
+ pycparser==2.22
345
+ pydantic==2.12.3
346
+ pydantic-settings==2.11.0
347
+ pydantic_core==2.41.4
348
+ pydeck==0.9.1
349
+ pydub==0.25.1
350
+ pyee==13.0.0
351
+ pygame==2.6.0
352
+ Pygments==2.18.0
353
+ PyJWT==2.10.1
354
+ pykwalify==1.7.0
355
+ pylance==0.38.2
356
+ pyloudnorm==0.1.1
357
+ pymongo==4.12.0
358
+ pypandoc==1.14
359
+ pyparsing==3.2.0
360
+ pypdf==6.1.1
361
+ PyPDF2==3.0.1
362
+ pypdfium2==4.30.1
363
+ PyPika==0.48.9
364
+ pyproject_hooks==1.1.0
365
+ PyQt5==5.15.11
366
+ PyQt5-Qt5==5.15.17
367
+ PyQt5_sip==12.17.0
368
+ pytest==8.3.5
369
+ pytest-asyncio==0.26.0
370
+ python-box==5.1.1
371
+ python-dateutil==2.9.0.post0
372
+ python-docx==1.2.0
373
+ python-dotenv==1.1.1
374
+ python-iso639==2024.10.22
375
+ python-json-logger==3.3.0
376
+ python-magic==0.4.27
377
+ python-multipart==0.0.20
378
+ python-oxmsg==0.0.1
379
+ python-pptx==1.0.2
380
+ pytorch-lightning==2.5.2
381
+ pytube==15.0.0
382
+ pytz==2024.1
383
+ pyvis==0.3.2
384
+ pywaffle==1.1.1
385
+ PyYAML==6.0.2
386
+ pyzmq==26.2.0
387
+ questionary==2.1.0
388
+ RapidFuzz==3.11.0
389
+ rdt==1.15.0
390
+ referencing==0.35.1
391
+ regex==2025.9.18
392
+ requests==2.32.5
393
+ requests-oauthlib==2.0.0
394
+ requests-toolbelt==1.0.0
395
+ resampy==0.4.3
396
+ rich==13.8.0
397
+ ringcentral==0.9.1
398
+ rpds-py==0.20.0
399
+ rsa==4.9
400
+ ruff==0.6.9
401
+ safehttpx==0.1.7
402
+ safetensors==0.4.5
403
+ schema==0.7.7
404
+ scikit-learn==1.6.1
405
+ scipy==1.11.4
406
+ seaborn==0.13.2
407
+ semantic-version==2.10.0
408
+ semver==3.0.2
409
+ sentence-transformers==3.3.1
410
+ setuptools==74.1.2
411
+ shapely==2.1.2
412
+ shellingham==1.5.4
413
+ simple-di==0.1.5
414
+ six==1.16.0
415
+ smart-open==7.0.4
416
+ smmap==5.0.1
417
+ sniffio==1.3.1
418
+ soupsieve==2.6
419
+ SpeechRecognition==3.14.2
420
+ spython==0.0.79
421
+ SQLAlchemy==2.0.34
422
+ sqlalchemy-spanner==1.17.0
423
+ sqlparse==0.5.3
424
+ sse-starlette==3.0.2
425
+ stack-data==0.6.3
426
+ stagehand==0.5.4
427
+ starlette==0.48.0
428
+ statsmodels==0.14.4
429
+ streamlit==1.38.0
430
+ striprtf==0.0.26
431
+ sympy==1.13.3
432
+ table-evaluator==1.7.2.post1
433
+ tenacity==8.5.0
434
+ tensorboard==2.18.0
435
+ tensorboard-data-server==0.7.2
436
+ tensorflow==2.18.0
437
+ termcolor==2.5.0
438
+ tesseract==0.1.3
439
+ text-generation==0.7.0
440
+ threadpoolctl==3.5.0
441
+ tiktoken==0.8.0
442
+ timm==1.0.12
443
+ tokenizers==0.21.2
444
+ toml==0.10.2
445
+ tomli==2.3.0
446
+ tomli_w==1.2.0
447
+ tomlkit==0.13.3
448
+ torch==2.7.1
449
+ torchaudio==2.7.1
450
+ torchmetrics==1.7.4
451
+ torchvision==0.22.1
452
+ tornado==6.4.1
453
+ tqdm==4.66.4
454
+ traitlets==5.14.3
455
+ transformers==4.53.1
456
+ twilio==9.3.8
457
+ typer==0.12.5
458
+ typer-slim==0.21.1
459
+ types-python-dateutil==2.9.0.20241206
460
+ typeshed_client==2.7.0
461
+ typing-inspect==0.9.0
462
+ typing-inspection==0.4.2
463
+ typing_extensions==4.15.0
464
+ tzdata==2024.1
465
+ tzlocal==5.3.1
466
+ ucimlrepo==0.0.7
467
+ ultralytics==8.3.156
468
+ ultralytics-thop==2.0.14
469
+ unstructured==0.16.11
470
+ unstructured-client==0.28.1
471
+ unstructured-inference==0.8.1
472
+ unstructured.pytesseract==0.3.13
473
+ uritemplate==4.1.1
474
+ urllib3==2.2.2
475
+ uv==0.9.3
476
+ uvicorn==0.38.0
477
+ uvloop==0.20.0
478
+ virtualenv==20.29.3
479
+ watchdog==6.0.0
480
+ watchfiles==0.24.0
481
+ wcwidth==0.2.13
482
+ webencodings==0.5.1
483
+ websocket-client==1.8.0
484
+ websockets==15.0.1
485
+ Werkzeug==3.1.3
486
+ wheel==0.45.1
487
+ widgetsnbextension==4.0.13
488
+ wikipedia==1.4.0
489
+ wordcloud==1.9.4
490
+ wrapt==1.16.0
491
+ wsproto==1.2.0
492
+ xlrd==2.0.1
493
+ XlsxWriter==3.2.0
494
+ yarl==1.20.0
495
+ youtube-transcript-api==1.2.3
496
+ zipp==3.20.1
497
+ zstandard==0.25.0