Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
....
Browse files
app.py
CHANGED
@@ -321,6 +321,7 @@ if __name__ == "__main__":
|
|
321 |
|
322 |
#load
|
323 |
malware_data = load_data_from_file('malware_features.txt')
|
|
|
324 |
|
325 |
gr.Markdown("# π€ Step 2: Upload a file for scanning")
|
326 |
gr.Markdown("## Client side")
|
@@ -389,7 +390,7 @@ if __name__ == "__main__":
|
|
389 |
|
390 |
c_extract.click(
|
391 |
fn=encrypt_encoded_quantize,
|
392 |
-
inputs =[
|
393 |
outputs=[encrypted_file],
|
394 |
)
|
395 |
|
|
|
321 |
|
322 |
#load
|
323 |
malware_data = load_data_from_file('malware_features.txt')
|
324 |
+
malware_data_state = gr.State(value=malware_data)
|
325 |
|
326 |
gr.Markdown("# π€ Step 2: Upload a file for scanning")
|
327 |
gr.Markdown("## Client side")
|
|
|
390 |
|
391 |
c_extract.click(
|
392 |
fn=encrypt_encoded_quantize,
|
393 |
+
inputs =[malware_data_state, user_id_input, eval_key_input],
|
394 |
outputs=[encrypted_file],
|
395 |
)
|
396 |
|