| from gradio_client import Client | |
| username = "1bitchatbotdemo" | |
| password = "hopeyoulikeit" | |
| client = Client("xmadai/1bit-xmad-demo-wu", auth=[username, password]) | |
| result = client.predict( | |
| message="what is huggingface", | |
| api_name="/chat" | |
| ) | |
| print(result) | |
| from gradio_client import Client | |
| username = "1bitchatbotdemo" | |
| password = "hopeyoulikeit" | |
| client = Client("xmadai/1bit-xmad-demo-wu", auth=[username, password]) | |
| result = client.predict( | |
| message="what is huggingface", | |
| api_name="/chat" | |
| ) | |
| print(result) | |