Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
def init_params(text, request: gr.Request):
|
6 |
youtube_link = ""
|
7 |
password_text = ""
|
8 |
-
load_ready_flag =
|
9 |
admin = gr.update(visible=True)
|
10 |
return admin, password_text, youtube_link, load_ready_flag
|
11 |
|
@@ -43,8 +43,8 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
43 |
# file_upload = gr.File(label="Upload your CSV or Word file", visible=False)
|
44 |
# web_link = gr.Textbox(label="Enter Web Page Link", visible=False)
|
45 |
user_data = gr.Textbox(label="User Data", elem_id="user_data_input", visible=True)
|
|
|
46 |
youtube_link_btn = gr.Button("Submit_YouTube_Link", elem_id="youtube_link_btn", visible=True)
|
47 |
-
load_ready_flag = gr.Checkbox(label="load_ready_flag", elem_id="load_ready_flag", value=False, visible=True)
|
48 |
with gr.Row() as data_state:
|
49 |
content_subject_state = gr.State() # 使用 gr.State 存储 content_subject
|
50 |
|
|
|
5 |
def init_params(text, request: gr.Request):
|
6 |
youtube_link = ""
|
7 |
password_text = ""
|
8 |
+
load_ready_flag = "READY"
|
9 |
admin = gr.update(visible=True)
|
10 |
return admin, password_text, youtube_link, load_ready_flag
|
11 |
|
|
|
43 |
# file_upload = gr.File(label="Upload your CSV or Word file", visible=False)
|
44 |
# web_link = gr.Textbox(label="Enter Web Page Link", visible=False)
|
45 |
user_data = gr.Textbox(label="User Data", elem_id="user_data_input", visible=True)
|
46 |
+
load_ready_flag = gr.Textbox(label="load_ready_flag", elem_id="load_ready_flag", value="LOADING", visible=False)
|
47 |
youtube_link_btn = gr.Button("Submit_YouTube_Link", elem_id="youtube_link_btn", visible=True)
|
|
|
48 |
with gr.Row() as data_state:
|
49 |
content_subject_state = gr.State() # 使用 gr.State 存储 content_subject
|
50 |
|