test123 / protected_content.py
mrgalindo's picture
Create protected_content.py
60a0ef2 verified
raw
history blame contribute delete
386 Bytes
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