Spaces:
No application file
No application file
File size: 689 Bytes
ecdee91 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
#!/usr/bin/env python3
"""
Minimal test for HuggingFace Spaces compatibility
"""
import gradio as gr
def simple_function(text):
return f"β
Working! You entered: {text}"
# Create minimal interface
demo = gr.Interface(
fn=simple_function,
inputs=gr.Textbox(label="Test Input"),
outputs=gr.Textbox(label="Test Output"),
title="π€ Agent2Robot - Minimal Test",
description="Testing HuggingFace Spaces compatibility"
)
if __name__ == "__main__":
print("π§ͺ Testing minimal HuggingFace Spaces compatibility...")
demo.launch(
server_name="0.0.0.0",
server_port=7862, # Use different port
share=False,
show_error=True
) |