Evgueni Poloukarov commited on
Commit
a6a4bc3
·
1 Parent(s): 51429a1

test: add minimal Gradio app for Space diagnosis

Browse files
Files changed (1) hide show
  1. app_test.py +19 -0
app_test.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Minimal Gradio test to verify Space deployment
4
+ """
5
+ import gradio as gr
6
+
7
+ def test_function(text):
8
+ return f"Echo: {text}"
9
+
10
+ with gr.Blocks(title="FBMC Test") as demo:
11
+ gr.Markdown("# Minimal Test App")
12
+ with gr.Row():
13
+ input_text = gr.Textbox(label="Input")
14
+ output_text = gr.Textbox(label="Output")
15
+ btn = gr.Button("Test")
16
+ btn.click(fn=test_function, inputs=input_text, outputs=output_text)
17
+
18
+ if __name__ == "__main__":
19
+ demo.launch(server_name="0.0.0.0", server_port=7860)