Skip to content

Commit facaf36

Browse files
committed
refactor: merge ppl and inference in one file
1 parent 941422e commit facaf36

File tree

4 files changed

+234
-151
lines changed

4 files changed

+234
-151
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
BASE_URL=""
2-
OPENAI_KEY="sk-example"
1+
BASE_URL="http://47.236.144.103/v1/chat/completions"
2+
OPENAI_KEY="sk-7FrI14KGfbZPk7aR6155Dc668095493d895bCd177473276e"
33
TGI_URL="http://tgi_example_url:port"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ python3 -c "import token_visualizer; print(token_visualizer.__file__)"
2929
#### Start demo
3030
Run the following command to start inference visualizer.
3131
```shell
32-
python3 visual_inference.py
32+
python3 visualizer.py
3333
```
3434

3535
The command will start a OpenAIProxy model, to use it without exception, user should fill in the value of `BASE_URL` and `OPENAI_KEY`.
@@ -46,10 +46,10 @@ After inputing your prompt, you will see the large language model's answer and t
4646
### Perplexity
4747

4848
#### Start demo
49-
Run the following command to start perplexity visualizer.
49+
Run the following command to start perplexity visualizer, then click the `ppl` tab.
5050

5151
```shell
52-
python3 visual_ppl.py
52+
python3 visualizer.py
5353
```
5454

5555
#### Demo gif

visual_inference.py

Lines changed: 0 additions & 146 deletions
This file was deleted.

0 commit comments

Comments
 (0)