Download test_gradio.py from hephaestusonfire/Writing_Assistant: direct link, hf CLI and curl.
- Browser
- Download file 523 Bytes
-
https://huggingface.co/spaces/hephaestusonfire/Writing_Assistant/resolve/main/test_gradio.py
- Command line
-
hf download hf://spaces/hephaestusonfire/Writing_Assistant/test_gradio.py
-
curl -L -o test_gradio.py https://huggingface.co/spaces/hephaestusonfire/Writing_Assistant/resolve/main/test_gradio.py
523 Bytes
| """ | |
| Run this FIRST: python test_gradio.py | |
| Opens at http://127.0.0.1:7861 | |
| If this shows a blank page too, the issue is Gradio/browser. | |
| If it works, the problem is in app.py's CSS/theme code. | |
| """ | |
| import gradio as gr | |
| print("Gradio version:", gr.__version__) | |
| with gr.Blocks() as demo: | |
| gr.Markdown("# Test — if you see this, Gradio is working") | |
| txt = gr.Textbox(label="Type something") | |
| out = gr.Textbox(label="Output") | |
| txt.change(fn=lambda x: x.upper(), inputs=txt, outputs=out) | |
| demo.launch(server_port=7861) |