A newer version of the Gradio SDK is available: 6.26.0
metadata
title: ONNX Sentiment Demo
emoji: 💬
colorFrom: yellow
colorTo: red
sdk: gradio
sdk_version: 5.23.1
python_version: '3.12'
app_file: app.py
pinned: false
license: mit
ONNX Sentiment Demo
Binary sentiment classifier trained from scratch in PyTorch (bag-of-words + linear layer), exported to ONNX, served with ONNX Runtime.
Built from spaces/space_sentiment/ in the monorepo. Retrain and re-export with:
python train.py
python export_onnx.py