Spaces:
Sleeping
Sleeping
| title: TEST | |
| emoji: π¨ | |
| colorFrom: green | |
| colorTo: blue | |
| sdk: gradio | |
| sdk_version: 5.32.1 | |
| app_file: app.py | |
| pinned: false | |
| license: mit | |
| # TEST Gradio Space Demo | |
| This is a comprehensive Gradio space demonstration that showcases various features and capabilities of the Gradio framework. | |
| *Last updated: January 5, 2025* | |
| ## Features | |
| ### π― Greeting Generator | |
| - Personalized greeting generation with multiple input types | |
| - Name input field with placeholder text | |
| - Morning/evening toggle checkbox | |
| - Temperature slider for weather context | |
| - Dynamic emoji selection | |
| ### π Text Analyzer | |
| - Word count analysis | |
| - Character count (with and without spaces) | |
| - Average word length calculation | |
| - Real-time text processing | |
| ### π About Section | |
| - Documentation and usage instructions | |
| - Feature overview | |
| - Deployment guidelines | |
| ## Demo Highlights | |
| - **Multiple Tabs**: Organized interface with different functionalities | |
| - **Various Input Types**: Text fields, checkboxes, sliders, and buttons | |
| - **Interactive Elements**: Submit on button click or Enter key | |
| - **Modern UI**: Clean design with Gradio's Soft theme | |
| - **API Access**: REST API endpoints for programmatic access | |
| ## How to Use | |
| 1. **Greeting Generator**: Enter your name, select morning/evening, adjust temperature, and generate a personalized greeting | |
| 2. **Text Analyzer**: Paste any text to get detailed analysis including word count and character statistics | |
| 3. **About**: Learn more about the demo and how to create your own Gradio space | |
| ## Local Development | |
| To run this locally: | |
| ```bash | |
| pip install gradio | |
| python app.py | |
| ``` | |
| The app will be available at `http://localhost:7860` | |
| ## Deployment | |
| This space demonstrates how easy it is to deploy Gradio apps on Hugging Face Spaces: | |
| 1. Create your `app.py` with Gradio interface | |
| 2. Add `requirements.txt` with dependencies | |
| 3. Include `README.md` with metadata | |
| 4. Push to Hugging Face Spaces repository | |
| 5. Your app goes live automatically! | |
| ## API Usage | |
| This space provides REST API endpoints. Once deployed, you can access the API documentation and test the endpoints directly in the interface. | |