screenshot / README.md
broadfield-dev's picture
Update README.md
4f078de verified
---
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:**
1. Set up a Google Cloud project and enable the Gemini API.
2. Obtain an API key for the Gemini API.
3. 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.