File size: 523 Bytes
9ba5a9c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""
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)