Ritesh-hf commited on
Commit
80120c3
·
1 Parent(s): a8375a0
Files changed (3) hide show
  1. .gitignore +3 -1
  2. app.py +1 -1
  3. requirements.txt +152 -23
.gitignore CHANGED
@@ -14,4 +14,6 @@ env/
14
  .env
15
  demo.ipynb
16
  demo.py
17
- test-1.py
 
 
 
14
  .env
15
  demo.ipynb
16
  demo.py
17
+ test-1.py
18
+ train.py
19
+ retrieve.ipynb
app.py CHANGED
@@ -460,7 +460,7 @@ def handle_message(data):
460
  context = "No data available"
461
  session_id = request.sid
462
  if session_id not in session_store:
463
- session_store[session_id] = {'image_data': "", 'message': None, 'image_received': False}
464
 
465
  if 'message' in data:
466
  session_store[session_id]['message'] = data['message']
 
460
  context = "No data available"
461
  session_id = request.sid
462
  if session_id not in session_store:
463
+ session_store[session_id] = {'image_data': b"", 'message': None, 'image_received': False}
464
 
465
  if 'message' in data:
466
  session_store[session_id]['message'] = data['message']
requirements.txt CHANGED
@@ -1,23 +1,152 @@
1
- pytorch_lightning
2
- hydra-core
3
- lightning
4
- einops
5
- pandas
6
- opencv-python
7
- timm
8
- fairscale
9
- tabulate
10
- transformers
11
- gradio
12
- langchain
13
- langchain-community
14
- langchain-groq
15
- flask
16
- flask-cors
17
- flask-socketio
18
- python-dotenv
19
- eventlet
20
- gunicorn
21
- opencv-python
22
- spaces
23
- openai
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiofiles==23.2.1
2
+ aiohappyeyeballs==2.4.3
3
+ aiohttp==3.10.10
4
+ aiosignal==1.3.1
5
+ annotated-types==0.7.0
6
+ antlr4-python3-runtime==4.9.3
7
+ anyio==4.6.2.post1
8
+ appnope==0.1.4
9
+ asttokens==2.4.1
10
+ async-timeout==4.0.3
11
+ attrs==24.2.0
12
+ bidict==0.23.1
13
+ blinker==1.8.2
14
+ certifi==2024.8.30
15
+ charset-normalizer==3.4.0
16
+ click==8.1.7
17
+ comm==0.2.2
18
+ contourpy==1.3.0
19
+ cycler==0.12.1
20
+ dataclasses-json==0.6.7
21
+ debugpy==1.8.7
22
+ decorator==5.1.1
23
+ distro==1.9.0
24
+ dnspython==2.7.0
25
+ einops==0.8.0
26
+ eventlet==0.37.0
27
+ exceptiongroup==1.2.2
28
+ executing==2.1.0
29
+ fairscale==0.4.13
30
+ fastapi==0.115.3
31
+ ffmpy==0.4.0
32
+ filelock==3.16.1
33
+ Flask==3.0.3
34
+ Flask-Cors==5.0.0
35
+ Flask-SocketIO==5.4.1
36
+ fonttools==4.54.1
37
+ frozenlist==1.5.0
38
+ fsspec==2024.10.0
39
+ gradio==4.44.1
40
+ gradio_client==1.3.0
41
+ greenlet==3.1.1
42
+ groq==0.11.0
43
+ gunicorn==23.0.0
44
+ h11==0.14.0
45
+ httpcore==1.0.6
46
+ httpx==0.27.2
47
+ huggingface-hub==0.26.1
48
+ hydra-core==1.3.2
49
+ idna==3.10
50
+ importlib_metadata==8.5.0
51
+ importlib_resources==6.4.5
52
+ ipykernel==6.29.5
53
+ ipython==8.18.1
54
+ itsdangerous==2.2.0
55
+ jedi==0.19.1
56
+ Jinja2==3.1.4
57
+ jiter==0.6.1
58
+ jsonpatch==1.33
59
+ jsonpointer==3.0.0
60
+ jupyter_client==8.6.3
61
+ jupyter_core==5.7.2
62
+ kiwisolver==1.4.7
63
+ langchain==0.3.4
64
+ langchain-community==0.3.3
65
+ langchain-core==0.3.12
66
+ langchain-groq==0.2.0
67
+ langchain-text-splitters==0.3.0
68
+ langsmith==0.1.137
69
+ lightning==2.4.0
70
+ lightning-utilities==0.11.8
71
+ markdown-it-py==3.0.0
72
+ MarkupSafe==2.1.5
73
+ marshmallow==3.23.0
74
+ matplotlib==3.9.2
75
+ matplotlib-inline==0.1.7
76
+ mdurl==0.1.2
77
+ mpmath==1.3.0
78
+ multidict==6.1.0
79
+ mypy-extensions==1.0.0
80
+ nest-asyncio==1.6.0
81
+ networkx==3.2.1
82
+ numpy==1.26.4
83
+ omegaconf==2.3.0
84
+ openai==1.52.2
85
+ opencv-python==4.10.0.84
86
+ orjson==3.10.10
87
+ packaging==24.1
88
+ pandas==2.2.3
89
+ parso==0.8.4
90
+ pexpect==4.9.0
91
+ pillow==10.4.0
92
+ platformdirs==4.3.6
93
+ prompt_toolkit==3.0.48
94
+ propcache==0.2.0
95
+ psutil==5.9.8
96
+ ptyprocess==0.7.0
97
+ pure_eval==0.2.3
98
+ pydantic==2.9.2
99
+ pydantic-settings==2.6.0
100
+ pydantic_core==2.23.4
101
+ pydub==0.25.1
102
+ Pygments==2.18.0
103
+ pyparsing==3.2.0
104
+ python-dateutil==2.9.0.post0
105
+ python-dotenv==1.0.1
106
+ python-engineio==4.10.1
107
+ python-multipart==0.0.12
108
+ python-socketio==5.11.4
109
+ pytorch-lightning==2.4.0
110
+ pytz==2024.2
111
+ PyYAML==6.0.2
112
+ pyzmq==26.2.0
113
+ regex==2024.9.11
114
+ requests==2.32.3
115
+ requests-toolbelt==1.0.0
116
+ rich==13.9.3
117
+ ruff==0.7.0
118
+ safetensors==0.4.5
119
+ semantic-version==2.10.0
120
+ shellingham==1.5.4
121
+ simple-websocket==1.1.0
122
+ six==1.16.0
123
+ sniffio==1.3.1
124
+ spaces==0.30.4
125
+ SQLAlchemy==2.0.36
126
+ stack-data==0.6.3
127
+ starlette==0.41.0
128
+ sympy==1.13.1
129
+ tabulate==0.9.0
130
+ tenacity==9.0.0
131
+ timm==1.0.11
132
+ tokenizers==0.20.1
133
+ tomlkit==0.12.0
134
+ torch==2.5.0
135
+ torchmetrics==1.5.1
136
+ torchvision==0.20.0
137
+ tornado==6.4.1
138
+ tqdm==4.66.5
139
+ traitlets==5.14.3
140
+ transformers==4.45.2
141
+ typer==0.12.5
142
+ typing-inspect==0.9.0
143
+ typing_extensions==4.12.2
144
+ tzdata==2024.2
145
+ urllib3==2.2.3
146
+ uvicorn==0.32.0
147
+ wcwidth==0.2.13
148
+ websockets==12.0
149
+ Werkzeug==3.0.4
150
+ wsproto==1.2.0
151
+ yarl==1.16.0
152
+ zipp==3.20.2