#### Installation ``` pip show gradio_client > /dev/null 2>&1 if [ $? -ne 0 ]; then pip install gradio_client else pip install gradio_client --upgrade fi ``` #### Script ``` nano jarvis.py ``` ``` #!/usr/bin/env python3 from gradio_client import Client jarvis = Client("hadadrjt/ai") # Your message here. input = "Hi" result = jarvis.predict( multi_input={"text": input}, api_name="/api" ) responses = result[0][0][1] print(responses) ``` #### Run ``` chmod a+x jarvis.py ./jarvis.py ```