Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -662,6 +662,22 @@ with gr.Blocks(css="""
|
|
662 |
</div>
|
663 |
""")
|
664 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
665 |
# Launch the app
|
666 |
if __name__ == "__main__":
|
667 |
demo.launch()
|
|
|
662 |
</div>
|
663 |
""")
|
664 |
|
665 |
+
gr.Markdown("""
|
666 |
+
<div class="explanation-box">
|
667 |
+
To create a custom dataset, you'll need to structure your data with 32x32 channel matrices, where the rows correspond to antennas at the base station and the columns represent subcarriers. Here’s how to organize and store the channels and labels in an H5 file format for the demo:
|
668 |
+
```python
|
669 |
+
# How to pack channels and labels in a h5 file format as a custom dataset for the demo:
|
670 |
+
import h5py
|
671 |
+
with h5py.File('dataset.h5', 'w') as hdf:
|
672 |
+
hdf.create_dataset('channels', data=channels)
|
673 |
+
hdf.create_dataset('labels', data=labels)
|
674 |
+
print("Dataset saved!")
|
675 |
+
```
|
676 |
+
</div>
|
677 |
+
""")
|
678 |
+
|
679 |
+
|
680 |
+
|
681 |
# Launch the app
|
682 |
if __name__ == "__main__":
|
683 |
demo.launch()
|