Skip to content

Commit

Permalink
Merge pull request #102 from bioimage-io/move-chatbot-ui
Browse files Browse the repository at this point in the history
Move chatbot UI
  • Loading branch information
oeway authored Apr 2, 2024
2 parents 2fc290f + ec64e2b commit d5b7cdd
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 3,646 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Test server
env:
OPENAI_API_KEY: sk-xxxxxxxx
run: python -m bioimageio_chatbot start-server --host=0.0.0.0 --port=9000 & wget http://127.0.0.1:9000/public/apps/bioimageio-chatbot-client/index
run: python -m bioimageio_chatbot start-server --host=0.0.0.0 --port=9000 & wget http://127.0.0.1:9000/
# - name: Build vector database
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# run: |
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
include bioimageio_chatbot/static/*
include bioimageio_chatbot/apps/assistants/*
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export BIOIMAGEIO_KNOWLEDGE_BASE_PATH=./bioimageio-knowledge-base
export BIOIMAGEIO_CHAT_LOGS_PATH=./chat-logs
python -m bioimageio_chatbot start-server --host=0.0.0.0 --port=9000
```
This will create a local server, and the BioImage.IO Chatbot is available at: http://127.0.0.1:9000/public/apps/bioimageio-chatbot-client/chat or http://127.0.0.1:9000/assistants
This will create a local server, and the BioImage.IO Chatbot is available at: https://bioimage.io/chat?server=http://127.0.0.1:9000

Open the link in a browser, and you will see the chat interface.

Expand Down Expand Up @@ -151,7 +151,7 @@ export BIOIMAGEIO_CHAT_LOGS_PATH=./chat-logs
python -m bioimageio_chatbot connect-server --server-url=https://ai.imjoy.io
```

First, you will be asked to log in with a hypha account. Either your GitHub or Google account can be reused. Then, the following message containing a link to the chatbot will be displayed: 'The BioImage.IO Chatbot is available at: https://ai.imjoy.io/github|xxxxxx/apps/bioimageio-chatbot-client/chat'
First, you will be asked to log in with a hypha account. Either your GitHub or Google account can be reused. Then, the following message containing a link to the chatbot will be displayed: 'The BioImage.IO Chatbot is available at: https://bioimage.io/chat?server=https://ai.imjoy.io'

Leave your chatbot running to enable users inside or outside your network to access it from this URL.

Expand Down Expand Up @@ -227,7 +227,7 @@ Optionally, for improved reproducibility, you can change `latest` to a version t
The BioImage.IO Chatbot is now running in the Docker container. You can access it locally in your web browser by visiting:

```
http://localhost:3000/public/apps/bioimageio-chatbot-client/chat
https://bioimage.io/chat?server=http://localhost:3000
```

Make sure to replace `3000` with the host port you specified in the `docker run` command.
Expand Down
2 changes: 0 additions & 2 deletions bioimageio_chatbot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ def start_server(args):
f"--host={args.host}",
f"--port={args.port}",
f"--public-base-url={args.public_base_url}",
f"--static-mounts=/assistants:{current_dir}/apps/assistants/",
f"--static-mounts=/assets:{current_dir}/static/",
"--startup-functions=bioimageio_chatbot.chatbot:register_chat_service"
]
subprocess.run(command)
Expand Down
Loading

0 comments on commit d5b7cdd

Please sign in to comment.