Spaces:
No application file
No application file
sam133
� Deploy optimized Agent2Robot for HuggingFace Spaces - Schema validation fixed, Gradio 4.40.0 compatible, HuggingFace optimized
ecdee91
| #!/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 | |
| ) |