Skip to content

Commit b473669

Browse files
authored
Merge pull request #5 from doccano/release/v0.0.3
Release/v0.0.3
2 parents 0e30317 + 0736dcb commit b473669

File tree

7 files changed

+24
-12
lines changed

7 files changed

+24
-12
lines changed

README.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
doccano-mini is a few-shot annotation tool to assist the development of applications with Large language models (LLMs). Once you annotate a few text, you can test your task (e.g. text classification) with LLMs, then download the [LangChain](https://github.com/hwchase17/langchain)'s config.
44

5-
![Demo](./docs/images/demo.jpg)
6-
75
Note: This is an experimental project.
86

97
## Installation
@@ -28,6 +26,24 @@ doccano-mini
2826

2927
Now, we can open the browser and go to `http://localhost:8501/` to see the interface.
3028

29+
### Step1: Annotate a few text
30+
31+
In this step, we will annotate a few text. We can add a new text by clicking the `+` button. Try it out by double-clicking on any cell. You'll notice you can edit all cell values.
32+
33+
![Step1](./docs/images/annotation.gif)
34+
35+
### Step2: Test your task
36+
37+
In this step, we will test your task. We can enter a new test to the text box and click the `Predict` button. Then, we can see the result of the test.
38+
39+
![Step2](./docs/images/test_new_example.jpg)
40+
41+
### Step3: Download the config
42+
43+
In this step, we will download the [LangChain](https://github.com/hwchase17/langchain)'s config. We can click the `Download` button to download it.
44+
45+
![Step3](./docs/images/download_config.jpg)
46+
3147
## Development
3248

3349
```bash

doccano_mini/app.py

+5-9
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ def main():
4242
prompt.prefix = instruction
4343

4444
st.header("Test")
45-
text = st.text_area(label="Please enter your text.", value="")
46-
47-
st.header("Model Options")
45+
col1, col2 = st.columns([3, 1])
46+
text = col1.text_area(label="Please enter your text.", value="", height=300)
4847

4948
# https://platform.openai.com/docs/models/gpt-3-5
5049
available_models = (
@@ -54,13 +53,10 @@ def main():
5453
"text-davinci-002",
5554
"code-davinci-002",
5655
)
57-
5856
# Use text-davinci-003 by default.
59-
model_name = st.selectbox("Select an OpenAI model to use.", available_models, index=2)
60-
61-
temperature = st.slider("Temperature", min_value=0.0, max_value=1.0, value=0.7, step=0.01)
62-
63-
top_p = st.slider("Top-p", min_value=0.0, max_value=1.0, value=1.0, step=0.01)
57+
model_name = col2.selectbox("Model", available_models, index=2)
58+
temperature = col2.slider("Temperature", min_value=0.0, max_value=1.0, value=0.7, step=0.01)
59+
top_p = col2.slider("Top-p", min_value=0.0, max_value=1.0, value=1.0, step=0.01)
6460

6561
if st.button("Predict"):
6662
llm = OpenAI(model_name=model_name, temperature=temperature, top_p=top_p)

docs/images/annotation.gif

157 KB
Loading

docs/images/demo.jpg

-175 KB
Binary file not shown.

docs/images/download_config.jpg

95.6 KB
Loading

docs/images/test_new_example.jpg

93.9 KB
Loading

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "doccano-mini"
3-
version = "0.0.2"
3+
version = "0.0.3"
44
description = "Generate LangChain config quickly"
55
authors = ["Hironsan <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)