Spaces:
Running
Running
Sadjad Alikhani
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -214,7 +214,7 @@ def process_hdf5_file(uploaded_file, percentage_idx):
|
|
| 214 |
#print(preprocessed_chs[0][0][1])
|
| 215 |
|
| 216 |
# Step 7: Perform inference using the functions from inference.py
|
| 217 |
-
output_emb = inference.lwm_inference(preprocessed_chs, '
|
| 218 |
output_raw = inference.create_raw_dataset(preprocessed_chs, device)
|
| 219 |
|
| 220 |
print(f"Output Embeddings Shape: {output_emb.shape}")
|
|
@@ -301,7 +301,7 @@ with gr.Blocks(css="""
|
|
| 301 |
gr.Markdown("Percentage of Data for Training")
|
| 302 |
#percentage_slider_los = gr.Slider(minimum=0, maximum=4, step=1, value=0, interactive=True, elem_id="vertical-slider")
|
| 303 |
percentage_dropdown_los = gr.Dropdown(choices=[0, 1, 2, 3, 4, 5, 6, 7, 8],
|
| 304 |
-
value=
|
| 305 |
label="Percentage of Data for Training",
|
| 306 |
interactive=True)
|
| 307 |
|
|
|
|
| 214 |
#print(preprocessed_chs[0][0][1])
|
| 215 |
|
| 216 |
# Step 7: Perform inference using the functions from inference.py
|
| 217 |
+
output_emb = inference.lwm_inference(preprocessed_chs, 'cls_emb', model)
|
| 218 |
output_raw = inference.create_raw_dataset(preprocessed_chs, device)
|
| 219 |
|
| 220 |
print(f"Output Embeddings Shape: {output_emb.shape}")
|
|
|
|
| 301 |
gr.Markdown("Percentage of Data for Training")
|
| 302 |
#percentage_slider_los = gr.Slider(minimum=0, maximum=4, step=1, value=0, interactive=True, elem_id="vertical-slider")
|
| 303 |
percentage_dropdown_los = gr.Dropdown(choices=[0, 1, 2, 3, 4, 5, 6, 7, 8],
|
| 304 |
+
value=0,
|
| 305 |
label="Percentage of Data for Training",
|
| 306 |
interactive=True)
|
| 307 |
|