Spaces:
Runtime error
Runtime error
Commit
·
1d9018e
1
Parent(s):
5a72667
changed some text
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def rotate_btn_fn(img_path, xt, yt, zt, add_bone_cmap=False):
|
|
| 31 |
|
| 32 |
css_style = "./style.css"
|
| 33 |
callback = gr.CSVLogger()
|
| 34 |
-
with gr.Blocks(css=css_style) as app:
|
| 35 |
gr.HTML("RadRotator: 3D Rotation of Radiographs with Diffusion Models", elem_classes="title")
|
| 36 |
gr.HTML("Developed by:<br>Pouria Rouzrokh, Bardia Khosravi, Shahriar Faghani, Kellen Mulford, Michael J. Taunton, Bradley J. Erickson, Cody C. Wyles", elem_classes="subtitle")
|
| 37 |
gr.HTML("Note: The demo operates on a CPU, and since diffusion models require more computational capacity to function, all predictions are precomputed.", elem_classes="note")
|
|
@@ -56,11 +56,11 @@ with gr.Blocks(css=css_style) as app:
|
|
| 56 |
gr.Markdown('Please select an example image, choose your rotation angles, and press Rotate!', elem_classes='text')
|
| 57 |
with gr.Row():
|
| 58 |
with gr.Column(scale=1):
|
| 59 |
-
xt = gr.Slider(label='
|
| 60 |
with gr.Column(scale=1):
|
| 61 |
-
yt = gr.Slider(label='
|
| 62 |
with gr.Column(scale=1):
|
| 63 |
-
zt = gr.Slider(label='
|
| 64 |
with gr.Row():
|
| 65 |
rotate_btn = gr.Button("Rotate!", elem_classes='rotate_button')
|
| 66 |
rotate_btn.click(fn=rotate_btn_fn, inputs=[input_img, xt, yt, zt], outputs=output_img)
|
|
|
|
| 31 |
|
| 32 |
css_style = "./style.css"
|
| 33 |
callback = gr.CSVLogger()
|
| 34 |
+
with gr.Blocks(css=css_style, title="RadRotator") as app:
|
| 35 |
gr.HTML("RadRotator: 3D Rotation of Radiographs with Diffusion Models", elem_classes="title")
|
| 36 |
gr.HTML("Developed by:<br>Pouria Rouzrokh, Bardia Khosravi, Shahriar Faghani, Kellen Mulford, Michael J. Taunton, Bradley J. Erickson, Cody C. Wyles", elem_classes="subtitle")
|
| 37 |
gr.HTML("Note: The demo operates on a CPU, and since diffusion models require more computational capacity to function, all predictions are precomputed.", elem_classes="note")
|
|
|
|
| 56 |
gr.Markdown('Please select an example image, choose your rotation angles, and press Rotate!', elem_classes='text')
|
| 57 |
with gr.Row():
|
| 58 |
with gr.Column(scale=1):
|
| 59 |
+
xt = gr.Slider(label='x axis (medial/lateral rotation):', elem_classes='angle', value=0, minimum=-15, maximum=15, step=5)
|
| 60 |
with gr.Column(scale=1):
|
| 61 |
+
yt = gr.Slider(label='y axis (inlet/outlet rotation):', elem_classes='angle', value=0, minimum=-15, maximum=15, step=5)
|
| 62 |
with gr.Column(scale=1):
|
| 63 |
+
zt = gr.Slider(label='z axis (plane rotation):', elem_classes='angle', value=0, minimum=-15, maximum=15, step=5)
|
| 64 |
with gr.Row():
|
| 65 |
rotate_btn = gr.Button("Rotate!", elem_classes='rotate_button')
|
| 66 |
rotate_btn.click(fn=rotate_btn_fn, inputs=[input_img, xt, yt, zt], outputs=output_img)
|