Spaces:
Running
on
Zero
Running
on
Zero
title: Nano Banana PRO | |
emoji: 🌖 | |
colorFrom: pink | |
colorTo: gray | |
sdk: gradio | |
sdk_version: 5.44.0 | |
app_file: app.py | |
pinned: false | |
short_description: Officail 'Nano Banana + Upscale + Outpainting' | |
Nano Banana PRO | |
AI-Powered Image Style Transfer with Outpainting & Auto-Upscaling (4x)Overview | |
Nano Banana PRO is a Gradio-based web application that leverages the google/nano-banana model from Replicate API for image style transfer. Users can apply desired styles to uploaded images, optionally expand image boundaries (outpainting), and automatically perform 4x upscaling.Key Features | |
1. Style Transfer | |
AI-powered style transfer with 1-2 uploaded images | |
Fine-grained style control via text prompts | |
Powered by google/nano-banana model | |
2. Outpainting (Optional) | |
Image boundary expansion functionality | |
Multiple aspect ratio support (9:16, 16:9, 1:1, custom) | |
5 alignment options (center, left, right, top, bottom) | |
Adjustable mask overlap ratio (1-50%) | |
Image resize options (full, 50%, 33%, 25%, custom) | |
3. Auto Upscaling | |
Automatic Real-ESRGAN 4x upscaling for all generated images | |
High-quality image output guaranteed | |
4. ZeroGPU Optimization | |
Optimized for Hugging Face Spaces ZeroGPU environment | |
Efficient GPU resource management | |
Memory management and timeout prevention logic | |
Tech Stack | |
Required Libraries | |
gradio: Web interface | |
spaces: Hugging Face Spaces GPU support | |
replicate: Replicate API client | |
Pillow (PIL): Image processing | |
requests: HTTP request handling | |
numpy: Numerical operations | |
Models Used | |
Main Model: google/nano-banana (style transfer) | |
Upscaling Model: nightmareai/real-esrgan (4x upscaling) | |
Usage | |
Basic Usage | |
Enter style description text | |
Upload 1-2 images | |
Click "Generate Magic with Auto-Upscale" button | |
View and download processed image | |
Outpainting Usage | |
Check "Enable Outpainting" checkbox | |
Enter outpaint prompt | |
Set target aspect ratio and size | |
Select alignment option | |
Preview with "Preview Outpaint Mask" | |
Click generate button | |
Limitations | |
Maximum processing time: 180 seconds (GPU duration) | |
Maximum image size: 2048x2048 pixels | |
Replicate API token required | |
Internet connection required (external API calls) | |
Error Handling | |
Main Error Responses | |
Timeout: Automatically returns original image | |
API Error: Retry logic applied | |
Memory Shortage: Automatic garbage collection | |
Upscaling Failure: Returns original generated image | |
Performance Optimization | |
Reduced processing time with automatic image resizing | |
Improved memory efficiency with timely intermediate variable deletion | |
Network stability through retry logic | |
Duration settings optimized for ZeroGPU environment | |
License & Credits | |
google/nano-banana model | |
nightmareai/real-esrgan model | |
Hugging Face Spaces infrastructure | |
AI Image Processing | |
#AIImageGeneration #ImageStyleTransfer #AIArt #TextToImage #ImageToImage #AIImageProcessing #GenerativeAI #DeepLearning #MachineLearning #ComputerVision #NeuralStyleTransfer #AIImageEnhancement | |
Tech Stack | |
#Gradio #GradioApp #HuggingFace #HuggingFaceSpaces #ReplicateAPI #Python #WebApplication #ZeroGPU #GPUComputing #CloudComputing #AIDeployment #MLOps | |
Image Editing Features | |
#Outpainting #ImageExpansion #ImageUpscaling #RealESRGAN #SuperResolution #4xUpscaling #ImageEnhancement #ImageQuality #HDImage #ImageRestoration #ImageResizing #AspectRatio | |
Models & Frameworks | |
#NanoBanana #GoogleAI #ESRGAN #DiffusionModels #ImageDiffusion #StableDiffusion #AIModels #PretrainedModels #TransferLearning #FineTuning | |
User Experience | |
#NoCode #LowCode #UserFriendly #WebUI #DragAndDrop #RealTimeProcessing #InstantResults #AutoProcessing #BatchProcessing #ImageOptimization | |
Developer Related | |
#OpenSource #APIIntegration #PythonDevelopment #WebDevelopment #FullStack #FrontEnd #BackEnd #CloudNative #Serverless #Microservices | |
Industry Applications | |
#CreativeTools #DesignAutomation #ContentCreation #DigitalArt #PhotoEditing #GraphicDesign #MediaProduction #VisualEffects #ImageManipulation #CreativeAI | |
Community & Platforms | |
#HuggingFaceCommunity #AIcommunity #OpenAI #MLCommunity #DataScience #ArtificialIntelligence #TechInnovation #AITools #ProductivityTools #CreativeTechnology | |
Performance & Optimization | |
#PerformanceOptimization #MemoryManagement #GPUOptimization #LowLatency #HighPerformance #Scalable #Efficient #FastProcessing #ResourceOptimization #CostEffective | |
Trends & Innovation | |
#AI2024 #AI2025 #FutureOfAI #Innovation #TechTrends #DigitalTransformation #AIRevolution #NextGenAI #CuttingEdge #EmergingTech #AIApplications |