fix error for checkpoint retrieval (#3)
Browse files- fix error for checkpoint retrieval (d7306367af057b51fac863af68d2c179d68d76b2)
app.py
CHANGED
@@ -43,7 +43,7 @@ def list_attributes_and_values():
|
|
43 |
return html_script
|
44 |
|
45 |
def retrieve_checkpoint():
|
46 |
-
return
|
47 |
|
48 |
with gr.Blocks() as demo:
|
49 |
|
@@ -54,7 +54,7 @@ with gr.Blocks() as demo:
|
|
54 |
md_username = gr.Markdown(value='## Hi Guest!')
|
55 |
btn_logout = gr.Button("Logout")
|
56 |
with gr.Accordion(label="**Login** to keep user preferences", open=False):
|
57 |
-
st_user = gr.State(value={"name":"Guest", "hashed_password":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "history": { "keywords": [ "value1", "value3", "value4"], "prompts": [] }})
|
58 |
with gr.Column():
|
59 |
tb_user = gr.Textbox(label='Username')
|
60 |
tb_pwd = gr.Textbox(label='Password', type='password')
|
|
|
43 |
return html_script
|
44 |
|
45 |
def retrieve_checkpoint():
|
46 |
+
return users['save_name']
|
47 |
|
48 |
with gr.Blocks() as demo:
|
49 |
|
|
|
54 |
md_username = gr.Markdown(value='## Hi Guest!')
|
55 |
btn_logout = gr.Button("Logout")
|
56 |
with gr.Accordion(label="**Login** to keep user preferences", open=False):
|
57 |
+
st_user = gr.State(value={"name":"Guest", "hashed_password":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "history": { "keywords": [ "value1", "value3", "value4"], "prompts": [] }, "save_name" : "7783002652599471029.xlsx"})
|
58 |
with gr.Column():
|
59 |
tb_user = gr.Textbox(label='Username')
|
60 |
tb_pwd = gr.Textbox(label='Password', type='password')
|