This is an offline triaging application that can be used anywhere, anytime. The current android implementation is in the works and is not currently running. This python library serves as a proof-of-concept as well as a starting ground for the main application.
- Conversations
- Patient Cards
- Toggleable Triaging
- Contextual Information
-
Install the library and its dependencies.
pip install "git+https://github.com/Buxt-Codes/AidBud-python.git"
-
Login into HuggingFace and configure pytorch.
from huggingface_hub import login
import os
import torch
import torch._dynamo
os.environ["DISABLE_TORCH_COMPILE"] = "1"
torch.compile = lambda x, *args, **kwargs: x
torch._dynamo.config.suppress_errors = True
login(token="") # INSERT HUGGING FACE TOKEN HERE
- Import AidBud and initialise the model.
from aidbud install AidBud
aidbud = AidBud()
aidbud.initialise()
- Start new conversation and query away!
aidbud.new_conversation()
aidbud.query("I have a friend who just got burnt on his hand.")