AlokTheDataGuy commited on
Commit
911417c
·
verified ·
1 Parent(s): e057fb3

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +3 -9
  2. chatbot.py +13 -0
  3. flagged/log.csv +6 -0
  4. test.ipynb +566 -0
README.md CHANGED
@@ -1,12 +1,6 @@
1
  ---
2
- title: Test
3
- emoji: 📊
4
- colorFrom: yellow
5
- colorTo: blue
6
  sdk: gradio
7
- sdk_version: 5.22.0
8
- app_file: app.py
9
- pinned: false
10
  ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: test
3
+ app_file: chatbot.py
 
 
4
  sdk: gradio
5
+ sdk_version: 4.44.1
 
 
6
  ---
 
 
chatbot.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ # Load a free LLM
5
+ chatbot = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct-v0.1")
6
+
7
+ def chat(message):
8
+ response = chatbot(message, max_length=200)[0]["generated_text"]
9
+ return response
10
+
11
+ # Gradio Web Interface
12
+ demo = gr.Interface(fn=chat, inputs="text", outputs="text")
13
+ demo.launch()
flagged/log.csv ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ message,output,flag,username,timestamp
2
+ What is the Capital of France ?,"The capital of France is **Paris**.
3
+
4
+ It’s a very popular and important city! 😊
5
+
6
+ Do you want to know more about Paris, like its history, famous landmarks, or something else?",,,2025-03-19 08:54:31.458071
test.ipynb ADDED
@@ -0,0 +1,566 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 2,
6
+ "metadata": {},
7
+ "outputs": [
8
+ {
9
+ "name": "stdout",
10
+ "output_type": "stream",
11
+ "text": [
12
+ "Collecting ollama\n",
13
+ " Using cached ollama-0.4.7-py3-none-any.whl.metadata (4.7 kB)\n",
14
+ "Collecting httpx<0.29,>=0.27 (from ollama)\n",
15
+ " Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)\n",
16
+ "Collecting pydantic<3.0.0,>=2.9.0 (from ollama)\n",
17
+ " Using cached pydantic-2.10.6-py3-none-any.whl.metadata (30 kB)\n",
18
+ "Collecting anyio (from httpx<0.29,>=0.27->ollama)\n",
19
+ " Using cached anyio-4.9.0-py3-none-any.whl.metadata (4.7 kB)\n",
20
+ "Requirement already satisfied: certifi in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from httpx<0.29,>=0.27->ollama) (2025.1.31)\n",
21
+ "Collecting httpcore==1.* (from httpx<0.29,>=0.27->ollama)\n",
22
+ " Using cached httpcore-1.0.7-py3-none-any.whl.metadata (21 kB)\n",
23
+ "Requirement already satisfied: idna in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from httpx<0.29,>=0.27->ollama) (3.10)\n",
24
+ "Collecting h11<0.15,>=0.13 (from httpcore==1.*->httpx<0.29,>=0.27->ollama)\n",
25
+ " Using cached h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)\n",
26
+ "Collecting annotated-types>=0.6.0 (from pydantic<3.0.0,>=2.9.0->ollama)\n",
27
+ " Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)\n",
28
+ "Collecting pydantic-core==2.27.2 (from pydantic<3.0.0,>=2.9.0->ollama)\n",
29
+ " Downloading pydantic_core-2.27.2-cp39-cp39-win_amd64.whl.metadata (6.7 kB)\n",
30
+ "Requirement already satisfied: typing-extensions>=4.12.2 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from pydantic<3.0.0,>=2.9.0->ollama) (4.12.2)\n",
31
+ "Requirement already satisfied: exceptiongroup>=1.0.2 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from anyio->httpx<0.29,>=0.27->ollama) (1.2.2)\n",
32
+ "Collecting sniffio>=1.1 (from anyio->httpx<0.29,>=0.27->ollama)\n",
33
+ " Using cached sniffio-1.3.1-py3-none-any.whl.metadata (3.9 kB)\n",
34
+ "Using cached ollama-0.4.7-py3-none-any.whl (13 kB)\n",
35
+ "Using cached httpx-0.28.1-py3-none-any.whl (73 kB)\n",
36
+ "Using cached httpcore-1.0.7-py3-none-any.whl (78 kB)\n",
37
+ "Using cached pydantic-2.10.6-py3-none-any.whl (431 kB)\n",
38
+ "Downloading pydantic_core-2.27.2-cp39-cp39-win_amd64.whl (2.0 MB)\n",
39
+ " ---------------------------------------- 0.0/2.0 MB ? eta -:--:--\n",
40
+ " ---------------------------------------- 0.0/2.0 MB ? eta -:--:--\n",
41
+ " --------------------- ------------------ 1.0/2.0 MB 5.0 MB/s eta 0:00:01\n",
42
+ " ---------------------------------------- 2.0/2.0 MB 6.5 MB/s eta 0:00:00\n",
43
+ "Using cached annotated_types-0.7.0-py3-none-any.whl (13 kB)\n",
44
+ "Using cached anyio-4.9.0-py3-none-any.whl (100 kB)\n",
45
+ "Using cached h11-0.14.0-py3-none-any.whl (58 kB)\n",
46
+ "Using cached sniffio-1.3.1-py3-none-any.whl (10 kB)\n",
47
+ "Installing collected packages: sniffio, pydantic-core, h11, annotated-types, pydantic, httpcore, anyio, httpx, ollama\n",
48
+ "Successfully installed annotated-types-0.7.0 anyio-4.9.0 h11-0.14.0 httpcore-1.0.7 httpx-0.28.1 ollama-0.4.7 pydantic-2.10.6 pydantic-core-2.27.2 sniffio-1.3.1\n"
49
+ ]
50
+ }
51
+ ],
52
+ "source": [
53
+ "!pip install ollama"
54
+ ]
55
+ },
56
+ {
57
+ "cell_type": "code",
58
+ "execution_count": 4,
59
+ "metadata": {},
60
+ "outputs": [
61
+ {
62
+ "name": "stdout",
63
+ "output_type": "stream",
64
+ "text": [
65
+ "Collecting sentence-transformers\n",
66
+ " Downloading sentence_transformers-3.4.1-py3-none-any.whl.metadata (10 kB)\n",
67
+ "Collecting faiss-cpu\n",
68
+ " Downloading faiss_cpu-1.10.0-cp39-cp39-win_amd64.whl.metadata (4.5 kB)\n",
69
+ "Collecting transformers<5.0.0,>=4.41.0 (from sentence-transformers)\n",
70
+ " Downloading transformers-4.49.0-py3-none-any.whl.metadata (44 kB)\n",
71
+ "Collecting tqdm (from sentence-transformers)\n",
72
+ " Using cached tqdm-4.67.1-py3-none-any.whl.metadata (57 kB)\n",
73
+ "Requirement already satisfied: torch>=1.11.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from sentence-transformers) (2.6.0+cu118)\n",
74
+ "Requirement already satisfied: scikit-learn in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from sentence-transformers) (1.6.1)\n",
75
+ "Requirement already satisfied: scipy in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from sentence-transformers) (1.13.1)\n",
76
+ "Collecting huggingface-hub>=0.20.0 (from sentence-transformers)\n",
77
+ " Downloading huggingface_hub-0.29.3-py3-none-any.whl.metadata (13 kB)\n",
78
+ "Requirement already satisfied: Pillow in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from sentence-transformers) (11.0.0)\n",
79
+ "Requirement already satisfied: numpy<3.0,>=1.25.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from faiss-cpu) (2.0.2)\n",
80
+ "Requirement already satisfied: packaging in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from faiss-cpu) (24.2)\n",
81
+ "Requirement already satisfied: filelock in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from huggingface-hub>=0.20.0->sentence-transformers) (3.13.1)\n",
82
+ "Requirement already satisfied: fsspec>=2023.5.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from huggingface-hub>=0.20.0->sentence-transformers) (2024.6.1)\n",
83
+ "Collecting pyyaml>=5.1 (from huggingface-hub>=0.20.0->sentence-transformers)\n",
84
+ " Using cached PyYAML-6.0.2-cp39-cp39-win_amd64.whl.metadata (2.1 kB)\n",
85
+ "Requirement already satisfied: requests in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from huggingface-hub>=0.20.0->sentence-transformers) (2.32.3)\n",
86
+ "Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from huggingface-hub>=0.20.0->sentence-transformers) (4.12.2)\n",
87
+ "Requirement already satisfied: networkx in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from torch>=1.11.0->sentence-transformers) (3.2.1)\n",
88
+ "Requirement already satisfied: jinja2 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from torch>=1.11.0->sentence-transformers) (3.1.4)\n",
89
+ "Requirement already satisfied: sympy==1.13.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from torch>=1.11.0->sentence-transformers) (1.13.1)\n",
90
+ "Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from sympy==1.13.1->torch>=1.11.0->sentence-transformers) (1.3.0)\n",
91
+ "Requirement already satisfied: colorama in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tqdm->sentence-transformers) (0.4.6)\n",
92
+ "Collecting regex!=2019.12.17 (from transformers<5.0.0,>=4.41.0->sentence-transformers)\n",
93
+ " Using cached regex-2024.11.6-cp39-cp39-win_amd64.whl.metadata (41 kB)\n",
94
+ "Collecting tokenizers<0.22,>=0.21 (from transformers<5.0.0,>=4.41.0->sentence-transformers)\n",
95
+ " Downloading tokenizers-0.21.1-cp39-abi3-win_amd64.whl.metadata (6.9 kB)\n",
96
+ "Collecting safetensors>=0.4.1 (from transformers<5.0.0,>=4.41.0->sentence-transformers)\n",
97
+ " Downloading safetensors-0.5.3-cp38-abi3-win_amd64.whl.metadata (3.9 kB)\n",
98
+ "Requirement already satisfied: joblib>=1.2.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from scikit-learn->sentence-transformers) (1.4.2)\n",
99
+ "Requirement already satisfied: threadpoolctl>=3.1.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from scikit-learn->sentence-transformers) (3.5.0)\n",
100
+ "Requirement already satisfied: MarkupSafe>=2.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from jinja2->torch>=1.11.0->sentence-transformers) (3.0.2)\n",
101
+ "Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests->huggingface-hub>=0.20.0->sentence-transformers) (3.4.1)\n",
102
+ "Requirement already satisfied: idna<4,>=2.5 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests->huggingface-hub>=0.20.0->sentence-transformers) (3.10)\n",
103
+ "Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests->huggingface-hub>=0.20.0->sentence-transformers) (2.3.0)\n",
104
+ "Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests->huggingface-hub>=0.20.0->sentence-transformers) (2025.1.31)\n",
105
+ "Downloading sentence_transformers-3.4.1-py3-none-any.whl (275 kB)\n",
106
+ "Downloading faiss_cpu-1.10.0-cp39-cp39-win_amd64.whl (13.7 MB)\n",
107
+ " ---------------------------------------- 0.0/13.7 MB ? eta -:--:--\n",
108
+ " ---- ----------------------------------- 1.6/13.7 MB 9.4 MB/s eta 0:00:02\n",
109
+ " ----------- ---------------------------- 3.9/13.7 MB 10.7 MB/s eta 0:00:01\n",
110
+ " ------------- -------------------------- 4.7/13.7 MB 10.6 MB/s eta 0:00:01\n",
111
+ " ---------------- ----------------------- 5.8/13.7 MB 7.7 MB/s eta 0:00:02\n",
112
+ " -------------------- ------------------- 7.1/13.7 MB 6.9 MB/s eta 0:00:01\n",
113
+ " --------------------- ------------------ 7.3/13.7 MB 6.5 MB/s eta 0:00:01\n",
114
+ " ---------------------- ----------------- 7.6/13.7 MB 5.8 MB/s eta 0:00:02\n",
115
+ " -------------------------- ------------- 8.9/13.7 MB 5.7 MB/s eta 0:00:01\n",
116
+ " --------------------------- ------------ 9.4/13.7 MB 5.4 MB/s eta 0:00:01\n",
117
+ " ----------------------------- ---------- 10.2/13.7 MB 4.9 MB/s eta 0:00:01\n",
118
+ " -------------------------------- ------- 11.3/13.7 MB 4.9 MB/s eta 0:00:01\n",
119
+ " ---------------------------------- ----- 11.8/13.7 MB 4.8 MB/s eta 0:00:01\n",
120
+ " ------------------------------------- -- 12.8/13.7 MB 4.7 MB/s eta 0:00:01\n",
121
+ " --------------------------------------- 13.4/13.7 MB 4.6 MB/s eta 0:00:01\n",
122
+ " ---------------------------------------- 13.7/13.7 MB 4.5 MB/s eta 0:00:00\n",
123
+ "Downloading huggingface_hub-0.29.3-py3-none-any.whl (468 kB)\n",
124
+ "Using cached tqdm-4.67.1-py3-none-any.whl (78 kB)\n",
125
+ "Downloading transformers-4.49.0-py3-none-any.whl (10.0 MB)\n",
126
+ " ---------------------------------------- 0.0/10.0 MB ? eta -:--:--\n",
127
+ " --- ------------------------------------ 0.8/10.0 MB 3.7 MB/s eta 0:00:03\n",
128
+ " ------ --------------------------------- 1.6/10.0 MB 4.0 MB/s eta 0:00:03\n",
129
+ " --------- ------------------------------ 2.4/10.0 MB 4.1 MB/s eta 0:00:02\n",
130
+ " ------------ --------------------------- 3.1/10.0 MB 3.8 MB/s eta 0:00:02\n",
131
+ " --------------- ------------------------ 3.9/10.0 MB 3.9 MB/s eta 0:00:02\n",
132
+ " ------------------- -------------------- 5.0/10.0 MB 4.0 MB/s eta 0:00:02\n",
133
+ " ----------------------- ---------------- 5.8/10.0 MB 4.0 MB/s eta 0:00:02\n",
134
+ " --------------------------- ------------ 6.8/10.0 MB 4.1 MB/s eta 0:00:01\n",
135
+ " ----------------------------- ---------- 7.3/10.0 MB 4.1 MB/s eta 0:00:01\n",
136
+ " --------------------------------- ------ 8.4/10.0 MB 4.0 MB/s eta 0:00:01\n",
137
+ " ----------------------------------- ---- 8.9/10.0 MB 3.8 MB/s eta 0:00:01\n",
138
+ " ------------------------------------- -- 9.4/10.0 MB 3.7 MB/s eta 0:00:01\n",
139
+ " ---------------------------------------- 10.0/10.0 MB 3.6 MB/s eta 0:00:00\n",
140
+ "Using cached PyYAML-6.0.2-cp39-cp39-win_amd64.whl (162 kB)\n",
141
+ "Using cached regex-2024.11.6-cp39-cp39-win_amd64.whl (274 kB)\n",
142
+ "Downloading safetensors-0.5.3-cp38-abi3-win_amd64.whl (308 kB)\n",
143
+ "Downloading tokenizers-0.21.1-cp39-abi3-win_amd64.whl (2.4 MB)\n",
144
+ " ---------------------------------------- 0.0/2.4 MB ? eta -:--:--\n",
145
+ " -------- ------------------------------- 0.5/2.4 MB 3.4 MB/s eta 0:00:01\n",
146
+ " --------------------- ------------------ 1.3/2.4 MB 3.5 MB/s eta 0:00:01\n",
147
+ " ---------------------------------- ----- 2.1/2.4 MB 3.6 MB/s eta 0:00:01\n",
148
+ " ---------------------------------------- 2.4/2.4 MB 3.3 MB/s eta 0:00:00\n",
149
+ "Installing collected packages: tqdm, safetensors, regex, pyyaml, faiss-cpu, huggingface-hub, tokenizers, transformers, sentence-transformers\n",
150
+ "Successfully installed faiss-cpu-1.10.0 huggingface-hub-0.29.3 pyyaml-6.0.2 regex-2024.11.6 safetensors-0.5.3 sentence-transformers-3.4.1 tokenizers-0.21.1 tqdm-4.67.1 transformers-4.49.0\n"
151
+ ]
152
+ }
153
+ ],
154
+ "source": [
155
+ "!pip install sentence-transformers faiss-cpu"
156
+ ]
157
+ },
158
+ {
159
+ "cell_type": "code",
160
+ "execution_count": 9,
161
+ "metadata": {},
162
+ "outputs": [
163
+ {
164
+ "name": "stdout",
165
+ "output_type": "stream",
166
+ "text": [
167
+ "The capital of Italy is **Rome**. \n",
168
+ "\n",
169
+ "It’s a common misconception that it’s Florence, but Rome is the official capital. 😊\n"
170
+ ]
171
+ }
172
+ ],
173
+ "source": [
174
+ "import ollama\n",
175
+ "\n",
176
+ "def get_chatbot_response(model_name, messages):\n",
177
+ " response = ollama.chat(model=model_name, messages=messages)\n",
178
+ " return response['message']['content']\n",
179
+ "\n",
180
+ "# Example Usage\n",
181
+ "model_name = \"gemma3:1b\" # Can be replaced with 'gemma', 'llama3', etc.\n",
182
+ "messages = [{'role': 'user', 'content': \"What's the capital of Italy?\"}]\n",
183
+ "response = get_chatbot_response(model_name, messages)\n",
184
+ "print(response)\n"
185
+ ]
186
+ },
187
+ {
188
+ "cell_type": "code",
189
+ "execution_count": 13,
190
+ "metadata": {},
191
+ "outputs": [
192
+ {
193
+ "name": "stdout",
194
+ "output_type": "stream",
195
+ "text": [
196
+ "Collecting tf_keras\n",
197
+ " Downloading tf_keras-2.19.0-py3-none-any.whl.metadata (1.8 kB)\n",
198
+ "Collecting tensorflow<2.20,>=2.19 (from tf_keras)\n",
199
+ " Downloading tensorflow-2.19.0-cp39-cp39-win_amd64.whl.metadata (4.1 kB)\n",
200
+ "Requirement already satisfied: absl-py>=1.0.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (2.1.0)\n",
201
+ "Requirement already satisfied: astunparse>=1.6.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (1.6.3)\n",
202
+ "Requirement already satisfied: flatbuffers>=24.3.25 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (25.2.10)\n",
203
+ "Requirement already satisfied: gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (0.6.0)\n",
204
+ "Requirement already satisfied: google-pasta>=0.1.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (0.2.0)\n",
205
+ "Requirement already satisfied: libclang>=13.0.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (18.1.1)\n",
206
+ "Requirement already satisfied: opt-einsum>=2.3.2 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (3.4.0)\n",
207
+ "Requirement already satisfied: packaging in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (24.2)\n",
208
+ "Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.3 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (5.29.3)\n",
209
+ "Requirement already satisfied: requests<3,>=2.21.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (2.32.3)\n",
210
+ "Requirement already satisfied: setuptools in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (75.8.0)\n",
211
+ "Requirement already satisfied: six>=1.12.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (1.17.0)\n",
212
+ "Requirement already satisfied: termcolor>=1.1.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (2.5.0)\n",
213
+ "Requirement already satisfied: typing-extensions>=3.6.6 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (4.12.2)\n",
214
+ "Requirement already satisfied: wrapt>=1.11.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (1.17.2)\n",
215
+ "Requirement already satisfied: grpcio<2.0,>=1.24.3 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (1.70.0)\n",
216
+ "Collecting tensorboard~=2.19.0 (from tensorflow<2.20,>=2.19->tf_keras)\n",
217
+ " Downloading tensorboard-2.19.0-py3-none-any.whl.metadata (1.8 kB)\n",
218
+ "Requirement already satisfied: keras>=3.5.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (3.9.0)\n",
219
+ "Requirement already satisfied: numpy<2.2.0,>=1.26.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (2.0.2)\n",
220
+ "Requirement already satisfied: h5py>=3.11.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (3.13.0)\n",
221
+ "Collecting ml-dtypes<1.0.0,>=0.5.1 (from tensorflow<2.20,>=2.19->tf_keras)\n",
222
+ " Downloading ml_dtypes-0.5.1-cp39-cp39-win_amd64.whl.metadata (22 kB)\n",
223
+ "Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf_keras) (0.31.0)\n",
224
+ "Requirement already satisfied: wheel<1.0,>=0.23.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from astunparse>=1.6.0->tensorflow<2.20,>=2.19->tf_keras) (0.45.1)\n",
225
+ "Requirement already satisfied: rich in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from keras>=3.5.0->tensorflow<2.20,>=2.19->tf_keras) (13.9.4)\n",
226
+ "Requirement already satisfied: namex in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from keras>=3.5.0->tensorflow<2.20,>=2.19->tf_keras) (0.0.8)\n",
227
+ "Requirement already satisfied: optree in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from keras>=3.5.0->tensorflow<2.20,>=2.19->tf_keras) (0.14.1)\n",
228
+ "Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests<3,>=2.21.0->tensorflow<2.20,>=2.19->tf_keras) (3.4.1)\n",
229
+ "Requirement already satisfied: idna<4,>=2.5 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests<3,>=2.21.0->tensorflow<2.20,>=2.19->tf_keras) (3.10)\n",
230
+ "Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests<3,>=2.21.0->tensorflow<2.20,>=2.19->tf_keras) (2.3.0)\n",
231
+ "Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests<3,>=2.21.0->tensorflow<2.20,>=2.19->tf_keras) (2025.1.31)\n",
232
+ "Requirement already satisfied: markdown>=2.6.8 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf_keras) (3.7)\n",
233
+ "Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf_keras) (0.7.2)\n",
234
+ "Requirement already satisfied: werkzeug>=1.0.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf_keras) (3.1.3)\n",
235
+ "Requirement already satisfied: importlib-metadata>=4.4 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from markdown>=2.6.8->tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf_keras) (8.6.1)\n",
236
+ "Requirement already satisfied: MarkupSafe>=2.1.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from werkzeug>=1.0.1->tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf_keras) (3.0.2)\n",
237
+ "Requirement already satisfied: markdown-it-py>=2.2.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from rich->keras>=3.5.0->tensorflow<2.20,>=2.19->tf_keras) (3.0.0)\n",
238
+ "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from rich->keras>=3.5.0->tensorflow<2.20,>=2.19->tf_keras) (2.19.1)\n",
239
+ "Requirement already satisfied: zipp>=3.20 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf_keras) (3.21.0)\n",
240
+ "Requirement already satisfied: mdurl~=0.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from markdown-it-py>=2.2.0->rich->keras>=3.5.0->tensorflow<2.20,>=2.19->tf_keras) (0.1.2)\n",
241
+ "Downloading tf_keras-2.19.0-py3-none-any.whl (1.7 MB)\n",
242
+ " ---------------------------------------- 0.0/1.7 MB ? eta -:--:--\n",
243
+ " ---------------------------------------- 0.0/1.7 MB ? eta -:--:--\n",
244
+ " ------------------------ --------------- 1.0/1.7 MB 4.2 MB/s eta 0:00:01\n",
245
+ " ---------------------------------------- 1.7/1.7 MB 4.9 MB/s eta 0:00:00\n",
246
+ "Downloading tensorflow-2.19.0-cp39-cp39-win_amd64.whl (375.7 MB)\n",
247
+ " ---------------------------------------- 0.0/375.7 MB ? eta -:--:--\n",
248
+ " ---------------------------------------- 1.3/375.7 MB 8.4 MB/s eta 0:00:45\n",
249
+ " ---------------------------------------- 2.9/375.7 MB 7.3 MB/s eta 0:00:52\n",
250
+ " ---------------------------------------- 3.9/375.7 MB 6.7 MB/s eta 0:00:56\n",
251
+ " --------------------------------------- 5.5/375.7 MB 6.8 MB/s eta 0:00:55\n",
252
+ " --------------------------------------- 7.3/375.7 MB 7.2 MB/s eta 0:00:52\n",
253
+ " --------------------------------------- 8.9/375.7 MB 7.2 MB/s eta 0:00:52\n",
254
+ " - -------------------------------------- 10.7/375.7 MB 7.5 MB/s eta 0:00:49\n",
255
+ " - -------------------------------------- 12.6/375.7 MB 7.7 MB/s eta 0:00:47\n",
256
+ " - -------------------------------------- 13.4/375.7 MB 7.2 MB/s eta 0:00:51\n",
257
+ " - -------------------------------------- 15.2/375.7 MB 7.4 MB/s eta 0:00:50\n",
258
+ " - -------------------------------------- 17.3/375.7 MB 7.6 MB/s eta 0:00:48\n",
259
+ " - -------------------------------------- 18.6/375.7 MB 7.5 MB/s eta 0:00:48\n",
260
+ " -- ------------------------------------- 20.2/375.7 MB 7.5 MB/s eta 0:00:48\n",
261
+ " -- ------------------------------------- 22.5/375.7 MB 7.8 MB/s eta 0:00:46\n",
262
+ " -- ------------------------------------- 24.1/375.7 MB 7.7 MB/s eta 0:00:46\n",
263
+ " -- ------------------------------------- 26.0/375.7 MB 7.8 MB/s eta 0:00:45\n",
264
+ " -- ------------------------------------- 27.8/375.7 MB 7.9 MB/s eta 0:00:45\n",
265
+ " --- ------------------------------------ 29.6/375.7 MB 7.9 MB/s eta 0:00:44\n",
266
+ " --- ------------------------------------ 32.0/375.7 MB 8.1 MB/s eta 0:00:43\n",
267
+ " --- ------------------------------------ 34.3/375.7 MB 8.3 MB/s eta 0:00:42\n",
268
+ " --- ------------------------------------ 35.9/375.7 MB 8.2 MB/s eta 0:00:42\n",
269
+ " ---- ----------------------------------- 38.3/375.7 MB 8.4 MB/s eta 0:00:41\n",
270
+ " ---- ----------------------------------- 40.9/375.7 MB 8.6 MB/s eta 0:00:40\n",
271
+ " ---- ----------------------------------- 43.0/375.7 MB 8.7 MB/s eta 0:00:39\n",
272
+ " ---- ----------------------------------- 45.4/375.7 MB 8.7 MB/s eta 0:00:38\n",
273
+ " ---- ----------------------------------- 46.7/375.7 MB 8.6 MB/s eta 0:00:39\n",
274
+ " ----- ---------------------------------- 47.7/375.7 MB 8.7 MB/s eta 0:00:38\n",
275
+ " ----- ---------------------------------- 49.3/375.7 MB 8.5 MB/s eta 0:00:39\n",
276
+ " ----- ---------------------------------- 51.1/375.7 MB 8.5 MB/s eta 0:00:39\n",
277
+ " ----- ---------------------------------- 53.2/375.7 MB 8.6 MB/s eta 0:00:38\n",
278
+ " ----- ---------------------------------- 55.1/375.7 MB 8.6 MB/s eta 0:00:38\n",
279
+ " ------ --------------------------------- 57.7/375.7 MB 8.7 MB/s eta 0:00:37\n",
280
+ " ------ --------------------------------- 59.8/375.7 MB 8.8 MB/s eta 0:00:36\n",
281
+ " ------ --------------------------------- 62.1/375.7 MB 8.8 MB/s eta 0:00:36\n",
282
+ " ------ --------------------------------- 64.2/375.7 MB 8.9 MB/s eta 0:00:35\n",
283
+ " ------- -------------------------------- 66.3/375.7 MB 9.0 MB/s eta 0:00:35\n",
284
+ " ------- -------------------------------- 68.4/375.7 MB 8.9 MB/s eta 0:00:35\n",
285
+ " ------- -------------------------------- 70.8/375.7 MB 9.0 MB/s eta 0:00:34\n",
286
+ " ------- -------------------------------- 73.1/375.7 MB 9.1 MB/s eta 0:00:34\n",
287
+ " -------- ------------------------------- 75.5/375.7 MB 9.1 MB/s eta 0:00:33\n",
288
+ " -------- ------------------------------- 77.9/375.7 MB 9.2 MB/s eta 0:00:33\n",
289
+ " -------- ------------------------------- 80.7/375.7 MB 9.3 MB/s eta 0:00:32\n",
290
+ " -------- ------------------------------- 82.6/375.7 MB 9.3 MB/s eta 0:00:32\n",
291
+ " --------- ------------------------------ 85.5/375.7 MB 9.4 MB/s eta 0:00:31\n",
292
+ " --------- ------------------------------ 87.8/375.7 MB 9.4 MB/s eta 0:00:31\n",
293
+ " --------- ------------------------------ 89.9/375.7 MB 9.5 MB/s eta 0:00:31\n",
294
+ " --------- ------------------------------ 92.8/375.7 MB 9.5 MB/s eta 0:00:30\n",
295
+ " ---------- ----------------------------- 95.7/375.7 MB 9.6 MB/s eta 0:00:30\n",
296
+ " ---------- ----------------------------- 97.8/375.7 MB 9.6 MB/s eta 0:00:29\n",
297
+ " ---------- ----------------------------- 99.9/375.7 MB 9.6 MB/s eta 0:00:29\n",
298
+ " ---------- ----------------------------- 100.4/375.7 MB 9.7 MB/s eta 0:00:29\n",
299
+ " ---------- ----------------------------- 102.2/375.7 MB 9.5 MB/s eta 0:00:29\n",
300
+ " ----------- ---------------------------- 104.9/375.7 MB 9.6 MB/s eta 0:00:29\n",
301
+ " ----------- ---------------------------- 107.7/375.7 MB 9.7 MB/s eta 0:00:28\n",
302
+ " ----------- ---------------------------- 109.3/375.7 MB 9.6 MB/s eta 0:00:28\n",
303
+ " ----------- ---------------------------- 112.2/375.7 MB 9.7 MB/s eta 0:00:28\n",
304
+ " ------------ --------------------------- 115.1/375.7 MB 9.8 MB/s eta 0:00:27\n",
305
+ " ------------ --------------------------- 117.7/375.7 MB 9.8 MB/s eta 0:00:27\n",
306
+ " ------------ --------------------------- 120.3/375.7 MB 9.9 MB/s eta 0:00:26\n",
307
+ " ------------- -------------------------- 123.2/375.7 MB 9.9 MB/s eta 0:00:26\n",
308
+ " ------------ -------------------------- 125.0/375.7 MB 10.0 MB/s eta 0:00:26\n",
309
+ " ------------- -------------------------- 127.4/375.7 MB 9.9 MB/s eta 0:00:25\n",
310
+ " ------------- ------------------------- 130.0/375.7 MB 10.0 MB/s eta 0:00:25\n",
311
+ " ------------- ------------------------- 131.9/375.7 MB 10.0 MB/s eta 0:00:25\n",
312
+ " ------------- ------------------------- 133.4/375.7 MB 10.0 MB/s eta 0:00:25\n",
313
+ " -------------- ------------------------ 135.8/375.7 MB 10.0 MB/s eta 0:00:25\n",
314
+ " -------------- ------------------------ 138.1/375.7 MB 10.0 MB/s eta 0:00:24\n",
315
+ " -------------- ------------------------ 141.0/375.7 MB 10.0 MB/s eta 0:00:24\n",
316
+ " -------------- ------------------------ 143.7/375.7 MB 10.1 MB/s eta 0:00:24\n",
317
+ " --------------- ----------------------- 146.5/375.7 MB 10.1 MB/s eta 0:00:23\n",
318
+ " --------------- ----------------------- 148.9/375.7 MB 10.1 MB/s eta 0:00:23\n",
319
+ " --------------- ----------------------- 151.5/375.7 MB 10.2 MB/s eta 0:00:23\n",
320
+ " ---------------- ---------------------- 154.7/375.7 MB 10.3 MB/s eta 0:00:22\n",
321
+ " ---------------- ---------------------- 156.5/375.7 MB 10.2 MB/s eta 0:00:22\n",
322
+ " ---------------- ---------------------- 158.9/375.7 MB 10.3 MB/s eta 0:00:22\n",
323
+ " ---------------- ---------------------- 161.2/375.7 MB 10.3 MB/s eta 0:00:21\n",
324
+ " ---------------- ---------------------- 163.3/375.7 MB 10.3 MB/s eta 0:00:21\n",
325
+ " ----------------- --------------------- 165.4/375.7 MB 10.3 MB/s eta 0:00:21\n",
326
+ " ----------------- --------------------- 168.6/375.7 MB 10.3 MB/s eta 0:00:21\n",
327
+ " ----------------- --------------------- 170.4/375.7 MB 10.3 MB/s eta 0:00:20\n",
328
+ " ----------------- --------------------- 173.0/375.7 MB 10.3 MB/s eta 0:00:20\n",
329
+ " ------------------ -------------------- 175.9/375.7 MB 10.4 MB/s eta 0:00:20\n",
330
+ " ------------------ -------------------- 176.9/375.7 MB 10.3 MB/s eta 0:00:20\n",
331
+ " ------------------ -------------------- 180.4/375.7 MB 10.4 MB/s eta 0:00:19\n",
332
+ " ------------------- ------------------- 183.2/375.7 MB 10.4 MB/s eta 0:00:19\n",
333
+ " ------------------- ------------------- 184.5/375.7 MB 10.4 MB/s eta 0:00:19\n",
334
+ " ------------------- ------------------- 187.2/375.7 MB 10.4 MB/s eta 0:00:19\n",
335
+ " ------------------- ------------------- 190.3/375.7 MB 10.5 MB/s eta 0:00:18\n",
336
+ " ------------------- ------------------- 191.9/375.7 MB 10.4 MB/s eta 0:00:18\n",
337
+ " -------------------- ------------------ 194.5/375.7 MB 10.5 MB/s eta 0:00:18\n",
338
+ " -------------------- ------------------ 197.7/375.7 MB 10.5 MB/s eta 0:00:17\n",
339
+ " -------------------- ------------------ 199.0/375.7 MB 10.5 MB/s eta 0:00:17\n",
340
+ " -------------------- ------------------ 201.3/375.7 MB 10.5 MB/s eta 0:00:17\n",
341
+ " --------------------- ----------------- 203.4/375.7 MB 10.5 MB/s eta 0:00:17\n",
342
+ " --------------------- ----------------- 205.5/375.7 MB 10.5 MB/s eta 0:00:17\n",
343
+ " --------------------- ----------------- 207.6/375.7 MB 10.5 MB/s eta 0:00:17\n",
344
+ " --------------------- ----------------- 210.8/375.7 MB 10.5 MB/s eta 0:00:16\n",
345
+ " ---------------------- ---------------- 213.1/375.7 MB 10.6 MB/s eta 0:00:16\n",
346
+ " ---------------------- ---------------- 215.5/375.7 MB 10.5 MB/s eta 0:00:16\n",
347
+ " ---------------------- ---------------- 217.3/375.7 MB 10.5 MB/s eta 0:00:16\n",
348
+ " ---------------------- ---------------- 221.0/375.7 MB 10.6 MB/s eta 0:00:15\n",
349
+ " ----------------------- --------------- 223.6/375.7 MB 10.6 MB/s eta 0:00:15\n",
350
+ " ----------------------- --------------- 226.2/375.7 MB 10.6 MB/s eta 0:00:15\n",
351
+ " ----------------------- --------------- 228.9/375.7 MB 10.7 MB/s eta 0:00:14\n",
352
+ " ------------------------ -------------- 231.5/375.7 MB 10.7 MB/s eta 0:00:14\n",
353
+ " ------------------------ -------------- 233.6/375.7 MB 10.7 MB/s eta 0:00:14\n",
354
+ " ------------------------ -------------- 236.7/375.7 MB 10.7 MB/s eta 0:00:13\n",
355
+ " ------------------------ -------------- 238.6/375.7 MB 10.7 MB/s eta 0:00:13\n",
356
+ " ------------------------- ------------- 240.9/375.7 MB 10.7 MB/s eta 0:00:13\n",
357
+ " ------------------------- ------------- 243.3/375.7 MB 10.7 MB/s eta 0:00:13\n",
358
+ " ------------------------- ------------- 243.8/375.7 MB 10.7 MB/s eta 0:00:13\n",
359
+ " ------------------------- ------------- 247.2/375.7 MB 10.7 MB/s eta 0:00:13\n",
360
+ " -------------------------- ------------ 251.1/375.7 MB 10.7 MB/s eta 0:00:12\n",
361
+ " -------------------------- ------------ 252.2/375.7 MB 10.7 MB/s eta 0:00:12\n",
362
+ " -------------------------- ------------ 256.4/375.7 MB 10.8 MB/s eta 0:00:12\n",
363
+ " -------------------------- ------------ 259.8/375.7 MB 10.8 MB/s eta 0:00:11\n",
364
+ " --------------------------- ----------- 261.9/375.7 MB 10.8 MB/s eta 0:00:11\n",
365
+ " --------------------------- ----------- 264.2/375.7 MB 10.9 MB/s eta 0:00:11\n",
366
+ " --------------------------- ----------- 266.6/375.7 MB 11.0 MB/s eta 0:00:10\n",
367
+ " --------------------------- ----------- 267.9/375.7 MB 10.9 MB/s eta 0:00:10\n",
368
+ " --------------------------- ----------- 267.9/375.7 MB 10.9 MB/s eta 0:00:10\n",
369
+ " ---------------------------- ---------- 270.3/375.7 MB 10.9 MB/s eta 0:00:10\n",
370
+ " ---------------------------- ---------- 271.8/375.7 MB 10.9 MB/s eta 0:00:10\n",
371
+ " ---------------------------- ---------- 274.5/375.7 MB 10.9 MB/s eta 0:00:10\n",
372
+ " ---------------------------- ---------- 276.3/375.7 MB 11.0 MB/s eta 0:00:10\n",
373
+ " ---------------------------- ---------- 277.6/375.7 MB 10.9 MB/s eta 0:00:09\n",
374
+ " ----------------------------- --------- 280.8/375.7 MB 11.0 MB/s eta 0:00:09\n",
375
+ " ----------------------------- --------- 283.4/375.7 MB 11.1 MB/s eta 0:00:09\n",
376
+ " ----------------------------- --------- 284.4/375.7 MB 11.1 MB/s eta 0:00:09\n",
377
+ " ----------------------------- --------- 287.0/375.7 MB 11.1 MB/s eta 0:00:09\n",
378
+ " ------------------------------ -------- 289.1/375.7 MB 11.1 MB/s eta 0:00:08\n",
379
+ " ------------------------------ -------- 290.5/375.7 MB 11.1 MB/s eta 0:00:08\n",
380
+ " ------------------------------ -------- 291.8/375.7 MB 11.0 MB/s eta 0:00:08\n",
381
+ " ------------------------------ -------- 295.4/375.7 MB 11.1 MB/s eta 0:00:08\n",
382
+ " ------------------------------ -------- 297.5/375.7 MB 11.1 MB/s eta 0:00:08\n",
383
+ " ------------------------------- ------- 300.7/375.7 MB 11.1 MB/s eta 0:00:07\n",
384
+ " ------------------------------- ------- 304.1/375.7 MB 11.2 MB/s eta 0:00:07\n",
385
+ " ------------------------------- ------- 306.4/375.7 MB 11.2 MB/s eta 0:00:07\n",
386
+ " ------------------------------- ------- 308.3/375.7 MB 11.2 MB/s eta 0:00:07\n",
387
+ " -------------------------------- ------ 310.9/375.7 MB 11.2 MB/s eta 0:00:06\n",
388
+ " -------------------------------- ------ 314.3/375.7 MB 11.4 MB/s eta 0:00:06\n",
389
+ " -------------------------------- ------ 315.4/375.7 MB 11.3 MB/s eta 0:00:06\n",
390
+ " --------------------------------- ----- 318.0/375.7 MB 11.3 MB/s eta 0:00:06\n",
391
+ " --------------------------------- ----- 320.1/375.7 MB 11.3 MB/s eta 0:00:05\n",
392
+ " --------------------------------- ----- 323.0/375.7 MB 11.3 MB/s eta 0:00:05\n",
393
+ " --------------------------------- ----- 326.1/375.7 MB 11.4 MB/s eta 0:00:05\n",
394
+ " ---------------------------------- ---- 329.3/375.7 MB 11.5 MB/s eta 0:00:05\n",
395
+ " ---------------------------------- ---- 331.9/375.7 MB 11.5 MB/s eta 0:00:04\n",
396
+ " ---------------------------------- ---- 335.5/375.7 MB 11.5 MB/s eta 0:00:04\n",
397
+ " ----------------------------------- --- 338.7/375.7 MB 11.6 MB/s eta 0:00:04\n",
398
+ " ----------------------------------- --- 341.3/375.7 MB 11.5 MB/s eta 0:00:03\n",
399
+ " ----------------------------------- --- 343.1/375.7 MB 11.5 MB/s eta 0:00:03\n",
400
+ " ----------------------------------- --- 346.0/375.7 MB 11.6 MB/s eta 0:00:03\n",
401
+ " ------------------------------------ -- 348.4/375.7 MB 11.5 MB/s eta 0:00:03\n",
402
+ " ------------------------------------ -- 351.5/375.7 MB 11.6 MB/s eta 0:00:03\n",
403
+ " ------------------------------------ -- 355.5/375.7 MB 11.6 MB/s eta 0:00:02\n",
404
+ " ------------------------------------- - 357.3/375.7 MB 11.6 MB/s eta 0:00:02\n",
405
+ " ------------------------------------- - 360.2/375.7 MB 11.6 MB/s eta 0:00:02\n",
406
+ " ------------------------------------- - 363.3/375.7 MB 11.7 MB/s eta 0:00:02\n",
407
+ " ------------------------------------- - 365.7/375.7 MB 11.8 MB/s eta 0:00:01\n",
408
+ " -------------------------------------- 368.8/375.7 MB 11.8 MB/s eta 0:00:01\n",
409
+ " -------------------------------------- 372.0/375.7 MB 11.8 MB/s eta 0:00:01\n",
410
+ " -------------------------------------- 374.3/375.7 MB 11.8 MB/s eta 0:00:01\n",
411
+ " -------------------------------------- 375.7/375.7 MB 11.8 MB/s eta 0:00:01\n",
412
+ " -------------------------------------- 375.7/375.7 MB 11.8 MB/s eta 0:00:01\n",
413
+ " --------------------------------------- 375.7/375.7 MB 11.6 MB/s eta 0:00:00\n",
414
+ "Downloading ml_dtypes-0.5.1-cp39-cp39-win_amd64.whl (209 kB)\n",
415
+ "Downloading tensorboard-2.19.0-py3-none-any.whl (5.5 MB)\n",
416
+ " ---------------------------------------- 0.0/5.5 MB ? eta -:--:--\n",
417
+ " ------------------------ --------------- 3.4/5.5 MB 20.2 MB/s eta 0:00:01\n",
418
+ " ---------------------------------------- 5.5/5.5 MB 14.0 MB/s eta 0:00:00\n",
419
+ "Installing collected packages: ml-dtypes, tensorboard, tensorflow, tf_keras\n",
420
+ " Attempting uninstall: ml-dtypes\n",
421
+ " Found existing installation: ml-dtypes 0.4.1\n",
422
+ " Uninstalling ml-dtypes-0.4.1:\n",
423
+ " Successfully uninstalled ml-dtypes-0.4.1\n",
424
+ " Attempting uninstall: tensorboard\n",
425
+ " Found existing installation: tensorboard 2.18.0\n",
426
+ " Uninstalling tensorboard-2.18.0:\n",
427
+ " Successfully uninstalled tensorboard-2.18.0\n",
428
+ " Attempting uninstall: tensorflow\n",
429
+ " Found existing installation: tensorflow 2.18.0\n",
430
+ " Uninstalling tensorflow-2.18.0:\n",
431
+ " Successfully uninstalled tensorflow-2.18.0\n",
432
+ " Rolling back uninstall of tensorflow\n",
433
+ " Moving to c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages\\tensorflow-2.18.0.dist-info\\\n",
434
+ " from C:\\Users\\alokd\\miniconda3\\envs\\chat\\Lib\\site-packages\\~ensorflow-2.18.0.dist-info\n"
435
+ ]
436
+ },
437
+ {
438
+ "name": "stderr",
439
+ "output_type": "stream",
440
+ "text": [
441
+ " WARNING: Failed to remove contents in a temporary directory 'C:\\Users\\alokd\\miniconda3\\envs\\chat\\Lib\\site-packages\\~l_dtypes'.\n",
442
+ " You can safely remove it manually.\n",
443
+ "ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\\\Users\\\\alokd\\\\miniconda3\\\\envs\\\\chat\\\\Lib\\\\site-packages\\\\tensorflow\\\\compiler\\\\mlir\\\\lite\\\\python\\\\_pywrap_converter_api.pyd'\n",
444
+ "Consider using the `--user` option or check the permissions.\n",
445
+ "\n"
446
+ ]
447
+ }
448
+ ],
449
+ "source": [
450
+ "!pip install tf_keras"
451
+ ]
452
+ },
453
+ {
454
+ "cell_type": "code",
455
+ "execution_count": 17,
456
+ "metadata": {},
457
+ "outputs": [
458
+ {
459
+ "name": "stdout",
460
+ "output_type": "stream",
461
+ "text": [
462
+ "Collecting tf-keras\n",
463
+ " Using cached tf_keras-2.19.0-py3-none-any.whl.metadata (1.8 kB)\n",
464
+ "Collecting tensorflow<2.20,>=2.19 (from tf-keras)\n",
465
+ " Using cached tensorflow-2.19.0-cp39-cp39-win_amd64.whl.metadata (4.1 kB)\n",
466
+ "Requirement already satisfied: absl-py>=1.0.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (2.1.0)\n",
467
+ "Requirement already satisfied: astunparse>=1.6.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (1.6.3)\n",
468
+ "Requirement already satisfied: flatbuffers>=24.3.25 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (25.2.10)\n",
469
+ "Requirement already satisfied: gast!=0.5.0,!=0.5.1,!=0.5.2,>=0.2.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (0.6.0)\n",
470
+ "Requirement already satisfied: google-pasta>=0.1.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (0.2.0)\n",
471
+ "Requirement already satisfied: libclang>=13.0.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (18.1.1)\n",
472
+ "Requirement already satisfied: opt-einsum>=2.3.2 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (3.4.0)\n",
473
+ "Requirement already satisfied: packaging in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (24.2)\n",
474
+ "Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.3 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (5.29.3)\n",
475
+ "Requirement already satisfied: requests<3,>=2.21.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (2.32.3)\n",
476
+ "Requirement already satisfied: setuptools in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (75.8.0)\n",
477
+ "Requirement already satisfied: six>=1.12.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (1.17.0)\n",
478
+ "Requirement already satisfied: termcolor>=1.1.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (2.5.0)\n",
479
+ "Requirement already satisfied: typing-extensions>=3.6.6 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (4.12.2)\n",
480
+ "Requirement already satisfied: wrapt>=1.11.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (1.17.2)\n",
481
+ "Requirement already satisfied: grpcio<2.0,>=1.24.3 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (1.70.0)\n",
482
+ "Collecting tensorboard~=2.19.0 (from tensorflow<2.20,>=2.19->tf-keras)\n",
483
+ " Using cached tensorboard-2.19.0-py3-none-any.whl.metadata (1.8 kB)\n",
484
+ "Requirement already satisfied: keras>=3.5.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (3.9.0)\n",
485
+ "Requirement already satisfied: numpy<2.2.0,>=1.26.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (2.0.2)\n",
486
+ "Requirement already satisfied: h5py>=3.11.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (3.13.0)\n",
487
+ "Collecting ml-dtypes<1.0.0,>=0.5.1 (from tensorflow<2.20,>=2.19->tf-keras)\n",
488
+ " Using cached ml_dtypes-0.5.1-cp39-cp39-win_amd64.whl.metadata (22 kB)\n",
489
+ "Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorflow<2.20,>=2.19->tf-keras) (0.31.0)\n",
490
+ "Requirement already satisfied: wheel<1.0,>=0.23.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from astunparse>=1.6.0->tensorflow<2.20,>=2.19->tf-keras) (0.45.1)\n",
491
+ "Requirement already satisfied: rich in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from keras>=3.5.0->tensorflow<2.20,>=2.19->tf-keras) (13.9.4)\n",
492
+ "Requirement already satisfied: namex in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from keras>=3.5.0->tensorflow<2.20,>=2.19->tf-keras) (0.0.8)\n",
493
+ "Requirement already satisfied: optree in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from keras>=3.5.0->tensorflow<2.20,>=2.19->tf-keras) (0.14.1)\n",
494
+ "Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests<3,>=2.21.0->tensorflow<2.20,>=2.19->tf-keras) (3.4.1)\n",
495
+ "Requirement already satisfied: idna<4,>=2.5 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests<3,>=2.21.0->tensorflow<2.20,>=2.19->tf-keras) (3.10)\n",
496
+ "Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests<3,>=2.21.0->tensorflow<2.20,>=2.19->tf-keras) (2.3.0)\n",
497
+ "Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from requests<3,>=2.21.0->tensorflow<2.20,>=2.19->tf-keras) (2025.1.31)\n",
498
+ "Requirement already satisfied: markdown>=2.6.8 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf-keras) (3.7)\n",
499
+ "Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf-keras) (0.7.2)\n",
500
+ "Requirement already satisfied: werkzeug>=1.0.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf-keras) (3.1.3)\n",
501
+ "Requirement already satisfied: importlib-metadata>=4.4 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from markdown>=2.6.8->tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf-keras) (8.6.1)\n",
502
+ "Requirement already satisfied: MarkupSafe>=2.1.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from werkzeug>=1.0.1->tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf-keras) (3.0.2)\n",
503
+ "Requirement already satisfied: markdown-it-py>=2.2.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from rich->keras>=3.5.0->tensorflow<2.20,>=2.19->tf-keras) (3.0.0)\n",
504
+ "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from rich->keras>=3.5.0->tensorflow<2.20,>=2.19->tf-keras) (2.19.1)\n",
505
+ "Requirement already satisfied: zipp>=3.20 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard~=2.19.0->tensorflow<2.20,>=2.19->tf-keras) (3.21.0)\n",
506
+ "Requirement already satisfied: mdurl~=0.1 in c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages (from markdown-it-py>=2.2.0->rich->keras>=3.5.0->tensorflow<2.20,>=2.19->tf-keras) (0.1.2)\n",
507
+ "Using cached tf_keras-2.19.0-py3-none-any.whl (1.7 MB)\n",
508
+ "Using cached tensorflow-2.19.0-cp39-cp39-win_amd64.whl (375.7 MB)\n",
509
+ "Using cached ml_dtypes-0.5.1-cp39-cp39-win_amd64.whl (209 kB)\n",
510
+ "Using cached tensorboard-2.19.0-py3-none-any.whl (5.5 MB)\n",
511
+ "Installing collected packages: ml-dtypes, tensorboard, tensorflow, tf-keras\n",
512
+ " Attempting uninstall: ml-dtypes\n",
513
+ " Found existing installation: ml-dtypes 0.4.1\n",
514
+ " Uninstalling ml-dtypes-0.4.1:\n",
515
+ " Successfully uninstalled ml-dtypes-0.4.1\n",
516
+ " Attempting uninstall: tensorboard\n",
517
+ " Found existing installation: tensorboard 2.18.0\n",
518
+ " Uninstalling tensorboard-2.18.0:\n",
519
+ " Successfully uninstalled tensorboard-2.18.0\n",
520
+ " Attempting uninstall: tensorflow\n",
521
+ " Found existing installation: tensorflow 2.18.0\n",
522
+ " Uninstalling tensorflow-2.18.0:\n",
523
+ " Successfully uninstalled tensorflow-2.18.0\n",
524
+ " Rolling back uninstall of tensorflow\n",
525
+ " Moving to c:\\users\\alokd\\miniconda3\\envs\\chat\\lib\\site-packages\\tensorflow-2.18.0.dist-info\\\n",
526
+ " from C:\\Users\\alokd\\miniconda3\\envs\\chat\\Lib\\site-packages\\~ensorflow-2.18.0.dist-info\n",
527
+ "Note: you may need to restart the kernel to use updated packages.\n"
528
+ ]
529
+ },
530
+ {
531
+ "name": "stderr",
532
+ "output_type": "stream",
533
+ "text": [
534
+ "ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'c:\\\\Users\\\\alokd\\\\miniconda3\\\\envs\\\\chat\\\\Lib\\\\site-packages\\\\tensorflow\\\\compiler\\\\mlir\\\\lite\\\\python\\\\_pywrap_converter_api.pyd'\n",
535
+ "Consider using the `--user` option or check the permissions.\n",
536
+ "\n"
537
+ ]
538
+ }
539
+ ],
540
+ "source": [
541
+ "pip install tf-keras"
542
+ ]
543
+ }
544
+ ],
545
+ "metadata": {
546
+ "kernelspec": {
547
+ "display_name": "chat",
548
+ "language": "python",
549
+ "name": "python3"
550
+ },
551
+ "language_info": {
552
+ "codemirror_mode": {
553
+ "name": "ipython",
554
+ "version": 3
555
+ },
556
+ "file_extension": ".py",
557
+ "mimetype": "text/x-python",
558
+ "name": "python",
559
+ "nbconvert_exporter": "python",
560
+ "pygments_lexer": "ipython3",
561
+ "version": "3.9.21"
562
+ }
563
+ },
564
+ "nbformat": 4,
565
+ "nbformat_minor": 2
566
+ }