This project is a Python client for the ShenMind AI API, designed to make it easier for users to interact with the ShenMind API, explore and utilize AI models, and develop their own applications.
You can directly install it using pip:
pip install shenmind==0.1.0 -i https://pypi.org/simple/
Alternatively, you can clone this repository:
git clone https://github.com/shenmind-ai/shenmind-python
python setup.py install
You can view and configure your personal API token in the User Dashboard.
export SHENMIND_API_TOKEN=xxxxxxxxxxxxxxxxxxxx
import shenmind
prediction = shenmind.run(
modelId="yP1jM07UrYuQ6xHZ-lqYSQ==",
files=dict(
image_path='/mnt/d/apps/TencenMeeting/WeMeet/3.21.3.430/resources/raw/emoji_2.png'
),
params=dict(
prompt="the product is for sale"
),
waitResult=True
)
import shenmind
prediction = shenmind.getPredictionOutput(predictionId)
import shenmind
prediction = shenmind.cancelPrediction(predictionId)