rishirajpathak commited on
Commit
e6817ff
·
1 Parent(s): 53650b0

push to main

Browse files
Files changed (1) hide show
  1. test_hf.py +18 -0
test_hf.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Simple test to verify Hugging Face Spaces compatibility
4
+ """
5
+ import gradio as gr
6
+
7
+ def test_function():
8
+ return "✅ Hugging Face Space is working!"
9
+
10
+ # Simple test interface
11
+ with gr.Blocks(title="Test Interface") as test_app:
12
+ gr.Markdown("# 🧪 Test Interface")
13
+ test_btn = gr.Button("Test")
14
+ output = gr.Textbox()
15
+ test_btn.click(test_function, outputs=output)
16
+
17
+ if __name__ == "__main__":
18
+ test_app.launch()