Spaces:
Runtime error
Runtime error
| """ | |
| Minimal test to verify Gradio works on Spaces | |
| This is the absolute simplest Gradio app possible | |
| """ | |
| import gradio as gr | |
| # Create the simplest possible demo | |
| demo = gr.Interface( | |
| fn=lambda x: f"You said: {x}", | |
| inputs="text", | |
| outputs="text", | |
| title="Test Demo", | |
| description="If you see this, Gradio is working!" | |
| ) | |
| print(f"Demo created: {type(demo)}") | |
| print(f"Demo is valid: {isinstance(demo, (gr.Blocks, gr.Interface))}") | |