error_tester / README.md
ellagranger's picture
Init
34b69bb
|
Raw History Blame Contribute Delete
1.14 kB

A newer version of the Gradio SDK is available: 6.29.1

Upgrade
metadata
title: Error Tester
emoji: 🧪
colorFrom: red
colorTo: gray
sdk: gradio
sdk_version: 5.28.0
app_file: app.py
pinned: false
license: mit

A PyHARP example Space for exercising HARP's error handling paths.

Use the dropdown controls to select the failure shape, then click Process. The app intentionally raises runtime errors, quota-looking Gradio errors, Space-status errors, or malformed output payloads so HARP can display the corresponding user-facing error.

Primary mappings:

  • Gradio runtime error raises gr.Error, which should surface as a GradioError::RuntimeError.
  • Python runtime error raises RuntimeError, which should surface as a GradioError::RuntimeError when the Space is launched with show_error=True.
  • ZeroGPU quota error raises a quota-looking gr.Error, which should surface as GradioError::QuotaExceeded.
  • Space status error raises a message matching Hugging Face Space failure text, which HARP maps to an HTTP 503-style status failure.
  • Output payload error returns invalid or unusable output data for checking HARP's downstream output parsing and file-download handling.