Mouhamadmm/tiny-aya-earth-chatbot
0
Tiny Aya Earth Chatbot
This public Gradio Space hosts Mouhamadmm/tiny-aya-earth behind a browser chatbot and a generated API endpoint.
Python API
from gradio_client import Client
client = Client("Mouhamadmm/tiny-aya-earth-chatbot")
result = client.predict(
message="Explain the idea of ikigai in simple Arabic.",
max_new_tokens=384,
temperature=0.2,
top_p=0.9,
api_name="/generate",
)
print(result)HTTP API
Submit a queued request:
curl -X POST \
"https://mouhamadmm-tiny-aya-earth-chatbot.hf.space/gradio_api/call/v2/generate" \
-H "Content-Type: application/json" \
-d '{"message":"Explain the idea of ikigai in simple Arabic.","max_new_tokens":384,"temperature":0.2,"top_p":0.9}'The response contains an event_id. Stream the result with:
curl -N \
"https://mouhamadmm-tiny-aya-earth-chatbot.hf.space/gradio_api/call/generate/<event_id>"The model is governed by the CC-BY-NC 4.0 License with Acceptable Use Addendum.
