Spaces:
Sleeping
Sleeping
|
Download README.md from maddiman/simple-test-app: direct link, hf CLI and curl.
- Browser
- Download file 2.12 kB
-
https://huggingface.co/spaces/maddiman/simple-test-app/resolve/main/README.md
- Command line
-
hf download hf://spaces/maddiman/simple-test-app/README.md
-
curl -L -o README.md https://huggingface.co/spaces/maddiman/simple-test-app/resolve/main/README.md
2.12 kB
A newer version of the Gradio SDK is available: 6.33.0
metadata
title: Simple Test App
emoji: 🧪
colorFrom: green
colorTo: blue
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
🧪 Simple Gradio Test App
A lightweight test application to verify Hugging Face Spaces deployment.
Features
- Greeting Generator - Create personalized greetings with adjustable enthusiasm
- Calculator - Perform basic arithmetic operations
- Text Reverser - Reverse any text input
- Timestamp - Display current server time
Purpose
This is a minimal test app designed to:
- ✅ Verify Hugging Face Spaces deployment works
- ✅ Test the Gradio interface
- ✅ Test API endpoints
- ✅ Ensure quick build times (~1 minute)
- ✅ Use minimal resources (perfect for free tier)
Local Development
# Install dependencies
pip install -r requirements.txt
# Run the app
python app.py
Open http://localhost:7860 in your browser.
API Usage
Greeting Endpoint
import requests
response = requests.post(
"https://YOUR-USERNAME-YOUR-SPACE.hf.space/api/predict",
json={
"data": ["Alice", 3]
}
)
print(response.json())
Calculator Endpoint
response = requests.post(
"https://YOUR-USERNAME-YOUR-SPACE.hf.space/api/predict",
json={
"data": [10, "Add", 5]
}
)
print(response.json())
cURL Example
curl -X POST "https://YOUR-USERNAME-YOUR-SPACE.hf.space/api/predict" \
-H "Content-Type: application/json" \
-d '{"data": ["World", 2]}'
Deployment
This app deploys in about 1 minute on Hugging Face Spaces (free tier).
Quick Deploy Steps
- Go to https://huggingface.co/spaces
- Click "Create new Space"
- Choose Gradio SDK
- Upload the files:
app.pyrequirements.txtREADME.md
- Wait ~1 minute for build
- Done!
Tech Stack
- Framework: Gradio 4.0+
- Language: Python 3.12
- Size: ~5MB (very lightweight)
- Build Time: ~60 seconds
License
MIT License - Feel free to use and modify!
Built with ❤️ using Gradio
Perfect for testing HF Spaces deployment before deploying larger models!