Spaces:
Runtime error
Runtime error
A newer version of the Gradio SDK is available: 6.26.0
metadata
title: SquircleCornersPrediction
emoji: 📱
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 6.5.1
python_version: '3.11'
app_file: app.py
pinned: false
license: mit
Squircle Corners Prediction
This Space detects squircle (rounded square) corners in iOS-style app icons using two methods:
- Gemini - Google's vision model analyzes the image to find corner circles
- YOLO - A trained YOLOv11 model detects corner bounding boxes
Usage
- Upload one or more iOS app icon images
- Click "Predict"
- View results side-by-side: Gemini on the left, YOLO on the right
Setup
For Gemini predictions to work, add your GOOGLE_API_KEY as a Secret in the Space settings:
- Go to Settings → Repository secrets
- Add a new secret with name
GOOGLE_API_KEYand your API key as the value
Output
The visualization shows:
- Cyan circles at each detected corner
- Cyan lines indicating the safe crop bounds (where the squircle content is guaranteed to be inside)
Model Details
- Gemini: Uses
gemini-2.5-flash-preview-05-20with structured JSON output - YOLO: YOLOv11 model trained on iOS app icons to detect corner regions