Evan Lesmez commited on
Commit
25d6a39
1 Parent(s): 29fa9df

Add quickstart to README.md

Browse files
Files changed (4) hide show
  1. README.md +35 -0
  2. chatbot/app.py +1 -1
  3. poetry.lock +3 -3
  4. pyproject.toml +1 -1
README.md CHANGED
@@ -1,5 +1,40 @@
1
  # Vegan Recipe Chatbot
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ## Useful links
4
 
5
  * [Task Matrix (Formerly Visual ChatGPT)](https://github.com/microsoft/TaskMatrix)
 
1
  # Vegan Recipe Chatbot
2
 
3
+ ![Screenshot of Chatbot initial interface](docs/assets/chatbot_init.png)
4
+
5
+ ## Quickstart
6
+
7
+ `git clone` the repo
8
+
9
+ ```sh
10
+ cd lv-recipe-chatbot
11
+ ```
12
+
13
+ Install Python poetry for dependency management.
14
+
15
+ ```sh
16
+ poetry install
17
+ ```
18
+
19
+ Put API secrets in .env
20
+
21
+ ```sh
22
+ cp .env.example .env
23
+ # edit .env with your secret key(s). Only OPEN_AI_KEY is required.
24
+ ```
25
+
26
+ One option is to enter the poetry environment.
27
+
28
+ ```sh
29
+ poetry shell
30
+ ```
31
+
32
+ Then start the Gradio demo.
33
+
34
+ ```sh
35
+ python app.py
36
+ ```
37
+
38
  ## Useful links
39
 
40
  * [Task Matrix (Formerly Visual ChatGPT)](https://github.com/microsoft/TaskMatrix)
chatbot/app.py CHANGED
@@ -8,7 +8,7 @@ from langchain.prompts.chat import (
8
  MessagesPlaceholder,
9
  ChatPromptTemplate,
10
  )
11
- from engineer_prompt import init_prompt
12
 
13
  # from transformers import (
14
  # BlipProcessor,
 
8
  MessagesPlaceholder,
9
  ChatPromptTemplate,
10
  )
11
+ from chatbot.engineer_prompt import init_prompt
12
 
13
  # from transformers import (
14
  # BlipProcessor,
poetry.lock CHANGED
@@ -1668,7 +1668,7 @@ python-versions = ">=3.6"
1668
 
1669
  [[package]]
1670
  name = "platformdirs"
1671
- version = "3.3.0"
1672
  description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
1673
  category = "main"
1674
  optional = false
@@ -3870,8 +3870,8 @@ pkgutil-resolve-name = [
3870
  {file = "pkgutil_resolve_name-1.3.10.tar.gz", hash = "sha256:357d6c9e6a755653cfd78893817c0853af365dd51ec97f3d358a819373bbd174"},
3871
  ]
3872
  platformdirs = [
3873
- {file = "platformdirs-3.3.0-py3-none-any.whl", hash = "sha256:ea61fd7b85554beecbbd3e9b37fb26689b227ffae38f73353cbcc1cf8bd01878"},
3874
- {file = "platformdirs-3.3.0.tar.gz", hash = "sha256:64370d47dc3fca65b4879f89bdead8197e93e05d696d6d1816243ebae8595da5"},
3875
  ]
3876
  pluggy = [
3877
  {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"},
 
1668
 
1669
  [[package]]
1670
  name = "platformdirs"
1671
+ version = "3.4.0"
1672
  description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
1673
  category = "main"
1674
  optional = false
 
3870
  {file = "pkgutil_resolve_name-1.3.10.tar.gz", hash = "sha256:357d6c9e6a755653cfd78893817c0853af365dd51ec97f3d358a819373bbd174"},
3871
  ]
3872
  platformdirs = [
3873
+ {file = "platformdirs-3.4.0-py3-none-any.whl", hash = "sha256:01437886022decaf285d8972f9526397bfae2ac55480ed372ed6d9eca048870a"},
3874
+ {file = "platformdirs-3.4.0.tar.gz", hash = "sha256:a5e1536e5ea4b1c238a1364da17ff2993d5bd28e15600c2c8224008aff6bbcad"},
3875
  ]
3876
  pluggy = [
3877
  {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"},
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ version = "0.1.0"
4
  description = "Chatbot for recommending vegan recipes"
5
  authors = ["Evan Lesmez <[email protected]>"]
6
  readme = "README.md"
7
- packages = [{ include = "lv_recipe_chatbot" }]
8
 
9
  [tool.poetry.dependencies]
10
  python = "^3.8.1"
 
4
  description = "Chatbot for recommending vegan recipes"
5
  authors = ["Evan Lesmez <[email protected]>"]
6
  readme = "README.md"
7
+ packages = [{ include = "chatbot" }]
8
 
9
  [tool.poetry.dependencies]
10
  python = "^3.8.1"