Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -437,16 +437,7 @@ demo = gr.Blocks(css=".markdown-body { font-size: 18px; }")
|
|
437 |
|
438 |
with demo:
|
439 |
|
440 |
-
|
441 |
-
gr.Markdown("## Step 1: Add an Audio File")
|
442 |
-
audio_files = get_audio_files()
|
443 |
-
|
444 |
-
with gr.Row():
|
445 |
-
audio_file_dropdown = gr.Dropdown(audio_files, label="Select an Audio File", interactive=True)
|
446 |
-
audio_output = gr.Audio(label="Selected Audio", type="filepath")
|
447 |
-
|
448 |
-
# When an audio file is selected, it will display the file path
|
449 |
-
audio_file_dropdown.change(fn=load_audio_file, inputs=[audio_file_dropdown], outputs=[audio_output])
|
450 |
|
451 |
gr.Markdown(
|
452 |
"""
|
@@ -482,11 +473,22 @@ with demo:
|
|
482 |
|
483 |
"""
|
484 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
485 |
|
486 |
########################## Key Gen Part ##########################
|
487 |
|
488 |
gr.Markdown(
|
489 |
-
"## Step 1: Generate the keys\n\n"
|
490 |
"""In Fully Homomorphic Encryption (FHE) methods, two types of keys are created. The first
|
491 |
type, called secret keys, are used to encrypt and decrypt the user's data. The second type,
|
492 |
called evaluation keys, enables a server to work on the encrypted data without seeing the
|
|
|
437 |
|
438 |
with demo:
|
439 |
|
440 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
|
442 |
gr.Markdown(
|
443 |
"""
|
|
|
473 |
|
474 |
"""
|
475 |
)
|
476 |
+
|
477 |
+
# Step 1: Add an audio file
|
478 |
+
gr.Markdown("## Step 1: Add an Audio File")
|
479 |
+
audio_files = get_audio_files()
|
480 |
+
|
481 |
+
with gr.Row():
|
482 |
+
audio_file_dropdown = gr.Dropdown(audio_files, label="Select an Audio File", interactive=True)
|
483 |
+
audio_output = gr.Audio(label="Selected Audio", type="filepath")
|
484 |
+
|
485 |
+
# When an audio file is selected, it will display the file path
|
486 |
+
audio_file_dropdown.change(fn=load_audio_file, inputs=[audio_file_dropdown], outputs=[audio_output])
|
487 |
|
488 |
########################## Key Gen Part ##########################
|
489 |
|
490 |
gr.Markdown(
|
491 |
+
"## Step 1.2: Generate the keys\n\n"
|
492 |
"""In Fully Homomorphic Encryption (FHE) methods, two types of keys are created. The first
|
493 |
type, called secret keys, are used to encrypt and decrypt the user's data. The second type,
|
494 |
called evaluation keys, enables a server to work on the encrypted data without seeing the
|