File size: 386 Bytes
60a0ef2 |
1 2 3 4 5 6 7 8 9 10 11 12 |
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 |