Evan Lesmez commited on
Commit
f533eef
1 Parent(s): 5f3a430

Update pin instructions with new script

Browse files
README.md CHANGED
@@ -100,7 +100,7 @@ it to `core.txt`.
100
  Then run:
101
 
102
  ``` sh
103
- pipreqs --force
104
  ```
105
 
106
  This will update our `requirements.txt` to include the dependency as it
 
100
  Then run:
101
 
102
  ``` sh
103
+ scripts/pin_requirements.sh
104
  ```
105
 
106
  This will update our `requirements.txt` to include the dependency as it
_proc/_docs/index.html CHANGED
@@ -277,7 +277,7 @@ If you want to render documentation locally, you will want to <a href="https://n
277
  <p>If a new dependency for development is helpful for developers, add it to <code>dev.txt</code>.<br>
278
  If it is a dependency for the app that is imported in source code, add it to <code>core.txt</code>.<br>
279
  Then run:</p>
280
- <div class="sourceCode" id="cb12"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="ex">pipreqs</span> <span class="at">--force</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
281
  <p>This will update our <code>requirements.txt</code> to include the dependency as it should be pinned in the environment.</p>
282
  </section>
283
  <section id="development" class="level2">
 
277
  <p>If a new dependency for development is helpful for developers, add it to <code>dev.txt</code>.<br>
278
  If it is a dependency for the app that is imported in source code, add it to <code>core.txt</code>.<br>
279
  Then run:</p>
280
+ <div class="sourceCode" id="cb12"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="ex">scripts/pin_requirements.sh</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
281
  <p>This will update our <code>requirements.txt</code> to include the dependency as it should be pinned in the environment.</p>
282
  </section>
283
  <section id="development" class="level2">
_proc/_docs/search.json CHANGED
@@ -46,7 +46,7 @@
46
  "href": "index.html#dependencies",
47
  "title": "lv-recipe-chatbot",
48
  "section": "Dependencies",
49
- "text": "Dependencies\nIf a new dependency for development is helpful for developers, add it to dev.txt.\nIf it is a dependency for the app that is imported in source code, add it to core.txt.\nThen run:\npipreqs --force\nThis will update our requirements.txt to include the dependency as it should be pinned in the environment."
50
  },
51
  {
52
  "objectID": "index.html#development",
 
46
  "href": "index.html#dependencies",
47
  "title": "lv-recipe-chatbot",
48
  "section": "Dependencies",
49
+ "text": "Dependencies\nIf a new dependency for development is helpful for developers, add it to dev.txt.\nIf it is a dependency for the app that is imported in source code, add it to core.txt.\nThen run:\nscripts/pin_requirements.sh\nThis will update our requirements.txt to include the dependency as it should be pinned in the environment."
50
  },
51
  {
52
  "objectID": "index.html#development",
_proc/_docs/sitemap.xml CHANGED
@@ -10,7 +10,7 @@
10
  </url>
11
  <url>
12
  <loc>https://animalequality.github.io/lv-recipe-chatbot/index.html</loc>
13
- <lastmod>2023-06-12T18:23:01.803Z</lastmod>
14
  </url>
15
  <url>
16
  <loc>https://animalequality.github.io/lv-recipe-chatbot/lchain_tool.html</loc>
 
10
  </url>
11
  <url>
12
  <loc>https://animalequality.github.io/lv-recipe-chatbot/index.html</loc>
13
+ <lastmod>2023-06-12T18:52:57.779Z</lastmod>
14
  </url>
15
  <url>
16
  <loc>https://animalequality.github.io/lv-recipe-chatbot/lchain_tool.html</loc>
_proc/index.ipynb CHANGED
@@ -159,7 +159,7 @@
159
  "Then run:\n",
160
  "\n",
161
  "```sh\n",
162
- "pipreqs --force\n",
163
  "```\n",
164
  "\n",
165
  "This will update our `requirements.txt` to include the dependency as it should be pinned in the environment. \n",
 
159
  "Then run:\n",
160
  "\n",
161
  "```sh\n",
162
+ "scripts/pin_requirements.sh\n",
163
  "```\n",
164
  "\n",
165
  "This will update our `requirements.txt` to include the dependency as it should be pinned in the environment. \n",
lv_recipe_chatbot/requirements.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ fastcore==1.5.29
2
+ ipython==8.13.2
3
+ numpy==1.21.5
4
+ openai==0.27.7
5
+ Pillow==9.0.1
nbs/index.ipynb CHANGED
@@ -156,7 +156,7 @@
156
  "Then run:\n",
157
  "\n",
158
  "```sh\n",
159
- "pipreqs --force\n",
160
  "```\n",
161
  "\n",
162
  "This will update our `requirements.txt` to include the dependency as it should be pinned in the environment. \n",
 
156
  "Then run:\n",
157
  "\n",
158
  "```sh\n",
159
+ "scripts/pin_requirements.sh\n",
160
  "```\n",
161
  "\n",
162
  "This will update our `requirements.txt` to include the dependency as it should be pinned in the environment. \n",
requirements.txt CHANGED
@@ -1,10 +1,10 @@
1
- fastcore==1.5.29
2
- google_search_results==2.4.2
3
- gradio==3.34.0
4
- ipython==8.14.0
5
- langchain==0.0.195
6
- numpy==1.24.3
7
- Pillow==9.5.0
8
- setuptools==59.6.0
9
  torch==2.0.1+cpu
 
 
10
  transformers==4.30.0
 
1
+ duckduckgo-search==3.8.1
2
+ google-search-results==2.4.2
3
+ gradio==3.33.1
4
+ gradio_client==0.2.5
5
+ langchain==0.0.191
6
+ openai==0.27.7
 
 
7
  torch==2.0.1+cpu
8
+ torchvision==0.15.2+cpu
9
+ tqdm==4.65.0
10
  transformers==4.30.0
requirements/dev.txt CHANGED
@@ -6,6 +6,5 @@ nbdev
6
  isort
7
  jupyterlab
8
  promptlayer
9
- pipreqs
10
  jupyterlab-code-formatter
11
- # jupyterlab-quarto currently breaks markdown output
 
6
  isort
7
  jupyterlab
8
  promptlayer
 
9
  jupyterlab-code-formatter
10
+ # jupyterlab-quarto currently breaks markdown output so ignore
scripts/pin_requirements.sh ADDED
@@ -0,0 +1 @@
 
 
1
+ pip freeze | grep -F -f requirements/core.txt | sed 's/+cpu//g' > requirements.txt