Spaces:
Running on Zero
Running on Zero
File size: 662 Bytes
7ec313c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | """
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)
|