| import gradio as gr | |
| def protected_content(): | |
| return "Welcome to the protected content! This is only visible after successful login." | |
| def create_protected_interface(): | |
| with gr.Blocks() as protected_interface: | |
| gr.Markdown("# Protected Content") | |
| content = gr.Textbox(label="Content") | |
| content.value = protected_content() | |
| return protected_interface |