API docs

Home API usage

stupidcookgpt is powered by the miniGPT model, which is designed for lightweightedness and efficiency. The API as such is very simple to use. You only need the gradio_client library.

API Endpoint

The client in gradio_client is "ableian/scgpt", hosted on HuggingFace Spaces. The endpoint is /generate_recipe.

Request Parameters

Example Request

from gradio_client import Client

client = Client("ableian/scgpt") # client for gradio app
response = client.predict(
    "recipe for cereal coffee", 
    max_length=300, 
    temperature=0.85, 
    top_k=50, 
    top_p=0.9, 
    api_name="/generate_recipe"
)
print(response)