Spaces:
Running on Zero
Running on Zero
| """ | |
| Minimal test app to verify Gradio 6 + HF Spaces works | |
| """ | |
| import sys | |
| print("=" * 60, flush=True) | |
| print("TEST APP STARTING", flush=True) | |
| print(f"Python: {sys.version}", flush=True) | |
| import gradio as gr | |
| print(f"Gradio imported: {gr.__version__}", flush=True) | |
| import torch | |
| print(f"PyTorch imported: {torch.__version__}", flush=True) | |
| print(f"CUDA available: {torch.cuda.is_available()}", flush=True) | |
| # Simple interface | |
| with gr.Blocks() as demo: | |
| gr.Markdown("# Test App Running!") | |
| gr.Textbox(label="If you see this, the app works!") | |
| print("Launching...", flush=True) | |
| demo.launch(server_name="0.0.0.0", server_port=7860) | |
| print("LAUNCHED!", flush=True) | |