youngtsai commited on
Commit
b873be1
·
1 Parent(s): e6fc47d

password = gr.Textbox(label="Password", type="password", elem_id="password_input", visible=True)

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -1591,11 +1591,6 @@ def prev_slide():
1591
  def next_slide():
1592
  return update_slide(1)
1593
 
1594
-
1595
- IS_PASSWORD_SHOW = True
1596
- IS_YOUTUBE_LINK_SHOW = True
1597
- IS_YOUTUBE_LINK_BTN_SHOW = True
1598
-
1599
  def init_params(text, request: gr.Request):
1600
  if request:
1601
  print("Request headers dictionary:", request.headers)
@@ -1652,11 +1647,11 @@ HEAD = """
1652
 
1653
  with gr.Blocks() as demo:
1654
  with gr.Row() as admin:
1655
- password = gr.Textbox(label="Password", type="password", elem_id="password_input", visible=IS_PASSWORD_SHOW)
1656
  file_upload = gr.File(label="Upload your CSV or Word file", visible=False)
1657
- youtube_link = gr.Textbox(label="Enter YouTube Link", elem_id="youtube_link_input", visible=IS_YOUTUBE_LINK_SHOW)
1658
  video_id = gr.Textbox(label="video_id", visible=False)
1659
- youtube_link_btn = gr.Button("Submit_YouTube_Link", elem_id="youtube_link_btn", visible=IS_YOUTUBE_LINK_BTN_SHOW)
1660
  web_link = gr.Textbox(label="Enter Web Page Link", visible=False)
1661
  with gr.Tab("學生版"):
1662
  with gr.Row():
 
1591
  def next_slide():
1592
  return update_slide(1)
1593
 
 
 
 
 
 
1594
  def init_params(text, request: gr.Request):
1595
  if request:
1596
  print("Request headers dictionary:", request.headers)
 
1647
 
1648
  with gr.Blocks() as demo:
1649
  with gr.Row() as admin:
1650
+ password = gr.Textbox(label="Password", type="password", elem_id="password_input", visible=True)
1651
  file_upload = gr.File(label="Upload your CSV or Word file", visible=False)
1652
+ youtube_link = gr.Textbox(label="Enter YouTube Link", elem_id="youtube_link_input", visible=True)
1653
  video_id = gr.Textbox(label="video_id", visible=False)
1654
+ youtube_link_btn = gr.Button("Submit_YouTube_Link", elem_id="youtube_link_btn", visible=True)
1655
  web_link = gr.Textbox(label="Enter Web Page Link", visible=False)
1656
  with gr.Tab("學生版"):
1657
  with gr.Row():