Upload folder using huggingface_hub
Browse files95 unmodified lines969798991001015 unmodified lines1071081091101111121131146 unmodified lines1211221231241251261271281291301318 unmodified lines14014114214314414595 unmodified lines- F: 54%, T: 46% (balanced)- J: 60%, P: 40% (moderately imbalanced)## Usage### Requirements5 unmodified lines### Installation```bashgit clone https://github.com/your-username/psycialcd psycial# Set up environmentconda create -n psycial python=3.106 unmodified linescargo build --release```### Inference```bash# Train model./target/release/psycial hybrid train --multi-task# Predict single text./target/release/psycial hybrid predict "I love solving complex problems and thinking deeply about abstract concepts."8 unmodified linespredict_single("Your text here")?;```## Model FilesThis model repository includes:95 unmodified lines969798991001011021031041051061071081091101111121135 unmodified lines1191201211221231241251266 unmodified lines1331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631648 unmodified lines17317417517617717817918018118218318418518618718895 unmodified lines- F: 54%, T: 46% (balanced)- J: 60%, P: 40% (moderately imbalanced)## ⚠️ Important Note**This model does NOT support Hugging Face Inference API** because it's a custom Rust/PyTorch implementation, not a standard `transformers` model.To use this model, you have two options:### Option 1: Use the Web Interface (Easiest)Visit **https://polyjuice.0xbase.ai** for instant MBTI predictions - no setup required!### Option 2: Run Locally (Full Control)## Usage### Requirements5 unmodified lines### Installation```bashgit clone https://github.com/RyanKung/polyjuicecd polyjuice# Set up environmentconda create -n psycial python=3.106 unmodified linescargo build --release```### Download Model from Hugging Face```pythonfrom huggingface_hub import hf_hub_download# Download model filesmlp_weights = hf_hub_download(repo_id="ElderRyan/polyjuice",filename="mlp_weights_multitask.pt")vectorizer = hf_hub_download(repo_id="ElderRyan/polyjuice",filename="tfidf_vectorizer_multitask.json")# Copy to models directoryimport shutilshutil.copy(mlp_weights, "models/mlp_weights_multitask.pt")shutil.copy(vectorizer, "models/tfidf_vectorizer_multitask.json")```### Inference```bash# Download model files first (see above)# Predict single text./target/release/psycial hybrid predict "I love solving complex problems and thinking deeply about abstract concepts."8 unmodified linespredict_single("Your text here")?;```### Quick Test```bash# Download inference examplewget https://huggingface.co/ElderRyan/polyjuice/raw/main/inference_example.py# Run itpython inference_example.py```## Model FilesThis model repository includes:
README.md+47-4