mlai / test.py
saifeddinemk's picture
Fixed app v2
9e9c793
raw
history blame contribute delete
402 Bytes
from privateai_client import PAIClient
from privateai_client import request_objects
client = PAIClient(url="https://api.private-ai.com/community", api_key="47e2c6f28a0b42429e3e9dd248236d9c")
text_request = request_objects.process_text_obj(text=["How are u "])
response = client.process_text(text_request)
print(text_request.text)
print(response.processed_text)