CoolFace
Apppublic

Mouhamadmm/tiny-aya-earth-chatbot

sourceHugging Facecc-by-nc-4.0updated 4mo agoView on Hugging Face
0likes
App README

Tiny Aya Earth Chatbot

This public Gradio Space hosts Mouhamadmm/tiny-aya-earth behind a browser chatbot and a generated API endpoint.

Python API

python
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:

bash
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:

bash
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.