Spaces:
Sleeping
Sleeping
| import os | |
| # Forcefully disable Server-Side Rendering | |
| os.environ["GRADIO_ENABLE_SSR"] = "0" | |
| import gradio as gr | |
| print("Gradio imported. Starting minimal test app.") | |
| def minimal_test_function(text_input): | |
| """A simple function that cannot fail.""" | |
| print("Test function executed successfully.") | |
| return f"The app is stable. You entered: '{text_input}'" | |
| # A minimal interface with no complex dependencies | |
| demo = gr.Interface( | |
| fn=minimal_test_function, | |
| inputs=gr.Textbox(label="Input Text"), | |
| outputs=gr.Textbox(label="Output"), | |
| title="Environment Stability Test", | |
| description="If you see this page and can use it without it crashing, the environment is now fixed." | |
| ) | |
| if __name__ == "__main__": | |
| # Standard launch command | |
| demo.launch() |