|
| 1 | +XRAY_CONFIG = { |
| 2 | + "mode": "blocks", |
| 3 | + "components": [ |
| 4 | + { |
| 5 | + "id": 1, |
| 6 | + "type": "markdown", |
| 7 | + "props": { |
| 8 | + "default_value": "<pre><code> # Detect Disease From Scan\n With this model you can lorem ipsum\n - ipsum 1\n - ipsum 2\n</code></pre>\n", |
| 9 | + "name": "markdown", |
| 10 | + "label": None, |
| 11 | + "css": {}, |
| 12 | + }, |
| 13 | + }, |
| 14 | + { |
| 15 | + "id": 2, |
| 16 | + "type": "checkboxgroup", |
| 17 | + "props": { |
| 18 | + "choices": ["Covid", "Malaria", "Lung Cancer"], |
| 19 | + "default_value": [], |
| 20 | + "name": "checkboxgroup", |
| 21 | + "label": "Disease to Scan For", |
| 22 | + "css": {}, |
| 23 | + }, |
| 24 | + }, |
| 25 | + {"id": 3, "type": "tabs", "props": {"css": {}}}, |
| 26 | + {"id": 4, "type": "tabitem", "props": {"label": "X-ray", "css": {}}}, |
| 27 | + {"id": 5, "type": "tabitem", "props": {"label": "X-ray", "css": {}}}, |
| 28 | + {"id": 6, "type": "row", "props": {"type": "row", "css": {}}}, |
| 29 | + { |
| 30 | + "id": 7, |
| 31 | + "type": "image", |
| 32 | + "props": { |
| 33 | + "image_mode": "RGB", |
| 34 | + "shape": None, |
| 35 | + "source": "upload", |
| 36 | + "tool": "editor", |
| 37 | + "default_value": None, |
| 38 | + "name": "image", |
| 39 | + "label": None, |
| 40 | + "css": {}, |
| 41 | + }, |
| 42 | + }, |
| 43 | + { |
| 44 | + "id": 8, |
| 45 | + "type": "json", |
| 46 | + "props": {"default_value": '""', "name": "json", "label": None, "css": {}}, |
| 47 | + }, |
| 48 | + { |
| 49 | + "id": 9, |
| 50 | + "type": "button", |
| 51 | + "props": { |
| 52 | + "default_value": "Run", |
| 53 | + "name": "button", |
| 54 | + "label": None, |
| 55 | + "css": {"background-color": "red", "--hover-color": "orange"}, |
| 56 | + }, |
| 57 | + }, |
| 58 | + {"id": 10, "type": "tabitem", "props": {"label": "CT Scan", "css": {}}}, |
| 59 | + {"id": 11, "type": "tabitem", "props": {"label": "CT Scan", "css": {}}}, |
| 60 | + {"id": 12, "type": "row", "props": {"type": "row", "css": {}}}, |
| 61 | + { |
| 62 | + "id": 13, |
| 63 | + "type": "image", |
| 64 | + "props": { |
| 65 | + "image_mode": "RGB", |
| 66 | + "shape": None, |
| 67 | + "source": "upload", |
| 68 | + "tool": "editor", |
| 69 | + "default_value": None, |
| 70 | + "name": "image", |
| 71 | + "label": None, |
| 72 | + "css": {}, |
| 73 | + }, |
| 74 | + }, |
| 75 | + { |
| 76 | + "id": 14, |
| 77 | + "type": "json", |
| 78 | + "props": {"default_value": '""', "name": "json", "label": None, "css": {}}, |
| 79 | + }, |
| 80 | + { |
| 81 | + "id": 15, |
| 82 | + "type": "button", |
| 83 | + "props": { |
| 84 | + "default_value": "Run", |
| 85 | + "name": "button", |
| 86 | + "label": None, |
| 87 | + "css": {}, |
| 88 | + }, |
| 89 | + }, |
| 90 | + { |
| 91 | + "id": 16, |
| 92 | + "type": "textbox", |
| 93 | + "props": { |
| 94 | + "lines": 1, |
| 95 | + "placeholder": None, |
| 96 | + "default_value": "", |
| 97 | + "name": "textbox", |
| 98 | + "label": None, |
| 99 | + "css": {}, |
| 100 | + }, |
| 101 | + }, |
| 102 | + ], |
| 103 | + "theme": "default", |
| 104 | + "layout": { |
| 105 | + "id": 0, |
| 106 | + "children": [ |
| 107 | + {"id": 1}, |
| 108 | + {"id": 2}, |
| 109 | + { |
| 110 | + "id": 3, |
| 111 | + "children": [ |
| 112 | + { |
| 113 | + "id": 5, |
| 114 | + "children": [ |
| 115 | + {"id": 6, "children": [{"id": 7}, {"id": 8}]}, |
| 116 | + {"id": 9}, |
| 117 | + ], |
| 118 | + }, |
| 119 | + { |
| 120 | + "id": 5, |
| 121 | + "children": [ |
| 122 | + {"id": 6, "children": [{"id": 7}, {"id": 8}]}, |
| 123 | + {"id": 9}, |
| 124 | + ], |
| 125 | + }, |
| 126 | + { |
| 127 | + "id": 11, |
| 128 | + "children": [ |
| 129 | + {"id": 12, "children": [{"id": 13}, {"id": 14}]}, |
| 130 | + {"id": 15}, |
| 131 | + ], |
| 132 | + }, |
| 133 | + { |
| 134 | + "id": 11, |
| 135 | + "children": [ |
| 136 | + {"id": 12, "children": [{"id": 13}, {"id": 14}]}, |
| 137 | + {"id": 15}, |
| 138 | + ], |
| 139 | + }, |
| 140 | + ], |
| 141 | + }, |
| 142 | + {"id": 16}, |
| 143 | + ], |
| 144 | + }, |
| 145 | + "dependencies": [ |
| 146 | + {"targets": [9], "trigger": "click", "inputs": [2, 7], "outputs": [8]}, |
| 147 | + {"targets": [15], "trigger": "click", "inputs": [2, 13], "outputs": [14]}, |
| 148 | + ], |
| 149 | +} |
0 commit comments