Writing_Assistant / test_gradio.py
hephaestusonfire's picture
Upload 6 files
9ba5a9c verified
Raw History Blame Contribute Delete
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)