IgorSlinko's picture
Update sdk_version to 6.5.1
a36be16
|
Raw
History Blame Contribute Delete
1.17 kB

A newer version of the Gradio SDK is available: 6.26.0

Upgrade
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:

  1. Gemini - Google's vision model analyzes the image to find corner circles
  2. YOLO - A trained YOLOv11 model detects corner bounding boxes

Usage

  1. Upload one or more iOS app icon images
  2. Click "Predict"
  3. 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:

  1. Go to Settings → Repository secrets
  2. Add a new secret with name GOOGLE_API_KEY and 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-20 with structured JSON output
  • YOLO: YOLOv11 model trained on iOS app icons to detect corner regions