-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
44 lines (36 loc) · 1.17 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import gradio as gr
import json
import matplotlib.pyplot as plt
import numpy as np
from webui.mpada_ui import MPADAComponents
# from webui.vna_sweep_ui import SingleSweepComponents
from webui.switch_ui import RP2040Components
from extensions.manager import module_loader, ExtensionManager
ext = ExtensionManager()
mpada = MPADAComponents(extension_manager=ext)
# single_sweep_helper = SingleSweepComponents()
def dummy_print(*config):
return config
# panels
def config_tab():
mpada.vna_discovery_interface()
mpada.vna_init_interface()
# vna_cal_interface()
mpada.ant_config_interface()
# 'ysharma/llamas' 'bethecloud/storj_theme'
with gr.Blocks(title="MPADA", theme=gr.themes.Default()) as demo:
mpada.vna_overview_interface()
with gr.Tab("Setup"):
config_tab()
with gr.Tab("Single Sweep"):
mpada.single_sweep_tab()
with gr.Tab("Squential Sweep"):
mpada.sequential_sweep_tab()
with gr.Tab("Temporal Sweep"):
mpada.simple_temporal_sweep_tab()
with gr.Tab("Extensions"):
ext.interface()
# with gr.Tab("Add-ons"):
# module_loader()
if __name__ == "__main__":
demo.launch(share=True)