Update README.md
Browse files
README.md
CHANGED
|
@@ -23,4 +23,17 @@ Money wasted: 11€
|
|
| 23 |
|
| 24 |
## Usage
|
| 25 |
|
| 26 |
-
Please use the api of the space.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
## Usage
|
| 25 |
|
| 26 |
+
Please use the api of the space.
|
| 27 |
+
'
|
| 28 |
+
from gradio_client import Client
|
| 29 |
+
|
| 30 |
+
client = Client("unamedai/Kate")
|
| 31 |
+
result = client.predict(
|
| 32 |
+
message="Hello!!",
|
| 33 |
+
max_tokens=512,
|
| 34 |
+
temperature=0.8,
|
| 35 |
+
top_p=0.95,
|
| 36 |
+
api_name="/predict"
|
| 37 |
+
)
|
| 38 |
+
print(result)
|
| 39 |
+
'
|