akhaliq's picture
akhaliq HF Staff
Workflow card: enable hf_oauth (inference-api, write-repos)
ebab5bb verified
|
Raw History Blame
1.46 kB
metadata
title: Clef Decision Workflow
emoji: 🎼
colorFrom: pink
colorTo: yellow
sdk: gradio
sdk_version: 6.29.0
app_file: app.py
short_description: Node-based workflow for typed decisions with Cloudflare Clef
python_version: '3.12'
startup_duration_timeout: 1h
license: apache-2.0
hf_oauth: true
hf_oauth_scopes:
  - inference-api
  - write-repos
models:
  - Cloudflare/clef

Visual gr.Workflow demo of Cloudflare/clef, a 27B multimodal decision model.

The canvas wires three reference nodes — State (text or JSON), Questions (a JSON schema of typed questions: noul = true/false, choice = named options, score = ordered levels) and an optional Image — into a bound Python function that runs Clef in a single forward pass (no text is generated), producing a probability for every allowed option. The results land in two output tiles: an HTML Decision Report and the SystemOne Response JSON with the answer, confidence and probabilities for every question.

Hit Run to execute the pipeline. Sign in with Hugging Face to run nodes on your own inference quota. The Space owner can edit and save the workflow graph; everyone else gets a read-only canvas. The pipeline is also exposed through the Gradio API as /decision_report (see the View API panel or client.view_api()).

Blog