anyonehomep1mane commited on
Commit
9919c9b
·
1 Parent(s): d7e0edc

Latest Changes

Browse files
Dockerfile CHANGED
@@ -14,7 +14,11 @@ RUN apt-get update && apt-get install -y \
14
 
15
  COPY requirements.txt .
16
 
17
- RUN pip install --upgrade pip && \
 
 
 
 
18
  pip install --no-cache-dir -r requirements.txt
19
 
20
  COPY . .
 
14
 
15
  COPY requirements.txt .
16
 
17
+ # Clean up existing pip packages before installation
18
+ RUN pip freeze > packages.txt && \
19
+ pip uninstall -r packages.txt -y && \
20
+ rm packages.txt && \
21
+ pip install --upgrade pip && \
22
  pip install --no-cache-dir -r requirements.txt
23
 
24
  COPY . .
app.py CHANGED
@@ -11,7 +11,7 @@
11
  # gr.Interface(fn=hello, inputs=None, outputs="text").launch()
12
 
13
  import os
14
- os.environ.pop("TF_USE_LEGACY_KERAS", None)
15
 
16
  import gradio as gr
17
  from common.gradio.common import full_analysis
 
11
  # gr.Interface(fn=hello, inputs=None, outputs="text").launch()
12
 
13
  import os
14
+ os.environ["TF_USE_LEGACY_KERAS"] = "1"
15
 
16
  import gradio as gr
17
  from common.gradio.common import full_analysis
common/gradio/__pycache__/common.cpython-310.pyc ADDED
Binary file (1.83 kB). View file
 
common/gradio/common.py CHANGED
@@ -1,10 +1,11 @@
1
  import numpy as np
2
- import tensorflow as tf
3
  import warnings
4
  from common.rag.common import generate_personality_summary
5
 
6
  import os
7
- os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
 
 
8
 
9
  _model = None
10
 
 
1
  import numpy as np
 
2
  import warnings
3
  from common.rag.common import generate_personality_summary
4
 
5
  import os
6
+ os.environ["TF_USE_LEGACY_KERAS"] = "1" # Add this line here
7
+
8
+ import tensorflow as tf
9
 
10
  _model = None
11
 
common/rag/__pycache__/common.cpython-310.pyc ADDED
Binary file (3.64 kB). View file
 
common/rag/__pycache__/document_loader.cpython-310.pyc ADDED
Binary file (2.38 kB). View file
 
common/rag/__pycache__/embeddings.cpython-310.pyc ADDED
Binary file (3.93 kB). View file
 
common/rag/__pycache__/models.cpython-310.pyc ADDED
Binary file (1.97 kB). View file
 
requirements.txt CHANGED
@@ -1,215 +1,11 @@
1
- absl-py
2
- aiofiles
3
- aiohappyeyeballs
4
- aiohttp
5
- aiosignal
6
- altair
7
- annotated-doc
8
- annotated-types
9
- anyio
10
- asttokens
11
- astunparse
12
- async-timeout
13
- attrs
14
- blinker
15
- brotli
16
- cachetools
17
- certifi
18
- charset-normalizer
19
- click
20
- cloudpickle
21
- colorama
22
- comm
23
- contourpy
24
- cycler
25
- dataclasses-json
26
- debugpy
27
- decorator
28
- distro
29
- exceptiongroup
30
- executing
31
- faiss-cpu
32
- fastapi
33
- ffmpy
34
- filelock
35
- filetype
36
- flatbuffers
37
- fonttools
38
- frozenlist
39
- fsspec
40
- gast
41
- gitdb
42
- GitPython
43
- google-auth
44
- google-auth-oauthlib
45
- google-genai
46
- google-pasta
47
- # gradio
48
- gradio_client
49
- greenlet
50
- groovy
51
- grpcio
52
- h11
53
- h5py
54
- hf-xet
55
- httpcore
56
- httpx
57
- httpx-sse
58
- huggingface-hub
59
- idna
60
- ImageIO
61
- ipykernel
62
- ipython
63
- jedi
64
- Jinja2
65
- jiter
66
- joblib
67
- jsonpatch
68
- jsonpointer
69
- jsonschema
70
- jsonschema-specifications
71
- jupyter_client
72
- jupyter_core
73
- keras
74
- kiwisolver
75
  langchain
76
- langchain-classic
77
- langchain-community
78
- langchain-core
79
- langchain-google-genai
80
- langchain-huggingface
81
- langchain-openai
82
- langchain-text-splitters
83
- langgraph
84
- langgraph-checkpoint
85
- langgraph-prebuilt
86
- langgraph-sdk
87
- langsmith
88
- lazy_loader
89
- libclang
90
- lime
91
- llvmlite
92
- Markdown
93
- markdown-it-py
94
- MarkupSafe
95
- marshmallow
96
- matplotlib
97
- matplotlib-inline
98
- mdurl
99
- ml_dtypes
100
- mpmath
101
- multidict
102
- mypy_extensions
103
- namex
104
- narwhals
105
- nest-asyncio
106
- networkx
107
- numba
108
- # numpy
109
- oauthlib
110
- openai
111
- opencv-python
112
- opt_einsum
113
- optree
114
- orjson
115
- ormsgpack
116
- packaging
117
- pandas
118
- parso
119
- pillow
120
- platformdirs
121
- prompt_toolkit
122
- propcache
123
- # protobuf
124
- psutil
125
- pure_eval
126
- pyarrow
127
- pyasn1
128
- pyasn1_modules
129
- pydantic
130
- pydantic-settings
131
- pydantic_core
132
- pydeck
133
- pydub
134
- Pygments
135
- pyparsing
136
- pypdf
137
- python-dateutil
138
- python-dotenv
139
- python-multipart
140
- pytz
141
- PyYAML
142
- pyzmq
143
- referencing
144
- regex
145
- reportlab
146
- requests
147
- requests-oauthlib
148
- requests-toolbelt
149
- rich
150
- rpds-py
151
- rsa
152
- safehttpx
153
- safetensors
154
- scikit-image
155
- scikit-learn
156
- scipy
157
- seaborn
158
- semantic-version
159
  sentence-transformers
160
- shap
161
- shellingham
162
- six
163
- slicer
164
- smmap
165
- sniffio
166
- SQLAlchemy
167
- stack-data
168
- starlette
169
- streamlit
170
- sympy
171
- tenacity
172
- tensorboard
173
- tensorboard-data-server
174
- # tensorflow
175
- tensorflow-estimator
176
- tensorflow-intel
177
- # tensorflow-io-gcs-filesystem
178
- termcolor
179
- tf_keras
180
- threadpoolctl
181
- tifffile
182
- tiktoken
183
- tokenizers
184
- toml
185
- tomlkit
186
- tornado
187
- # torch==2.7.1+cu118
188
- # torchvision==0.22.1+cu118
189
- # torchaudio==2.7.1+cu118
190
- tqdm
191
- traitlets
192
- transformers
193
- typer
194
- typer-slim
195
- typing-inspect
196
- typing-inspection
197
- typing_extensions
198
- tzdata
199
- urllib3
200
- uuid_utils
201
- uvicorn
202
- watchdog
203
- wcwidth
204
- websockets
205
- Werkzeug
206
- wrapt
207
- xxhash
208
- yarl
209
- zstandard
210
-
211
- tensorflow==2.15.1
212
- tf-keras==2.15.1
213
- numpy<2
214
- protobuf<4
215
- gradio>=4.0,<5.0
 
1
+ gradio
2
+ tensorflow==2.15.0
3
+ tf-keras
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  langchain
5
+ langchain_core
6
+ langchain_community
7
+ langchain_huggingface
8
+ torch
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  sentence-transformers
10
+ pypdf
11
+ faiss-cpu