Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import torch | |
| import spaces | |
| def test_gpu_processing(image): | |
| if torch.cuda.is_available(): | |
| gpu_name = torch.cuda.get_device_name(0) | |
| return f"Bhai Maza Aa Gaya! Paywall Bypass ho gaya. Hugging Face ne humein free mein '{gpu_name}' GPU de diya hai!" | |
| else: | |
| return "Gadbad hai bhai, abhi bhi CPU par chal raha hai." | |
| iface = gr.Interface( | |
| fn=test_gpu_processing, | |
| inputs=gr.Image(type="pil"), | |
| outputs=gr.Textbox(label="System Hardware Status"), | |
| title="ZeroGPU Paywall Bypass Test" | |
| ) | |
| iface.launch() | |