Spaces:
Running
Running
metadata
title: Screenshot/URL to HTML (Gemini API)
emoji: ⚡
colorFrom: blue
colorTo: purple
sdk: docker
sdk_version: 5.19.0
app_file: app.py
pinned: false
This Hugging Face Space extracts HTML code from screenshots or URLs using the Google Gemini Vision API.
Instructions:
- Set up a Google Cloud project and enable the Gemini API.
- Obtain an API key for the Gemini API.
- Add your Google API key as a secret in your Hugging Face Space named
GOOGLE_API_KEY
.
Usage:
- Webpage to HTML: Enter a URL, adjust settings, and click "Extract HTML from URL".
- Image Upload: Upload a screenshot or paste from clipboard, then click "Extract HTML from Image".
Note: Extracted HTML quality depends on the Gemini Vision API and input complexity.