Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ pa=os.environ['PASS']
|
|
7 |
|
8 |
main_chain='https://huggingface.co/datasets/Omnibus/chat-at/raw/main/chat/'
|
9 |
|
10 |
-
rec_list = chatchain.update_rec_list(main_chain)
|
11 |
|
12 |
def checkp(inp):
|
13 |
if inp == pa:
|
@@ -75,8 +75,8 @@ with gr.Blocks() as app:
|
|
75 |
'length': len(mychain_rec.chain)}
|
76 |
message = f"Blockchain loaded from: {main_chain}{address}.json"
|
77 |
#send_list,send_drop = update_send_list()
|
78 |
-
rec_list = chatchain.update_rec_list(main_chain)
|
79 |
-
rec_drop = gr.Dropdown.update(label="Recipient", choices=[f for f in rec_list])
|
80 |
return response,message,rec_drop
|
81 |
|
82 |
|
|
|
7 |
|
8 |
main_chain='https://huggingface.co/datasets/Omnibus/chat-at/raw/main/chat/'
|
9 |
|
10 |
+
rec_list,_ = chatchain.update_rec_list(main_chain)
|
11 |
|
12 |
def checkp(inp):
|
13 |
if inp == pa:
|
|
|
75 |
'length': len(mychain_rec.chain)}
|
76 |
message = f"Blockchain loaded from: {main_chain}{address}.json"
|
77 |
#send_list,send_drop = update_send_list()
|
78 |
+
rec_list,rec_drop = chatchain.update_rec_list(main_chain)
|
79 |
+
#rec_drop = gr.Dropdown.update(label="Recipient", choices=[f for f in rec_list])
|
80 |
return response,message,rec_drop
|
81 |
|
82 |
|