Spaces:
Runtime error
Runtime error
lmoss
commited on
Commit
·
f54e2aa
1
Parent(s):
fb4f232
added dual pane view
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ with open('berea_generator_epoch_24.pth', 'wb') as f:
|
|
21 |
st.text(resp.status_code)
|
22 |
|
23 |
pv.set_plot_theme("document")
|
24 |
-
pl = pv.Plotter(shape=(
|
25 |
window_size=(800, 800))
|
26 |
|
27 |
netG = DCGAN3D_G(64, 512, 1, 32, 1)
|
@@ -54,12 +54,12 @@ dist = np.linalg.norm(mesh.points, axis=1)
|
|
54 |
|
55 |
pl.subplot(0, 0)
|
56 |
_ = pl.add_mesh(slices, cmap="gray")
|
57 |
-
pl.subplot(
|
58 |
_ = pl.add_mesh(mesh, scalars=dist)
|
59 |
pl.export_html('pyvista.html')
|
60 |
|
61 |
st.header("test html import")
|
62 |
-
view_width =
|
63 |
view_height = 800
|
64 |
HtmlFile = open("pyvista.html", 'r', encoding='utf-8')
|
65 |
source_code = HtmlFile.read()
|
|
|
21 |
st.text(resp.status_code)
|
22 |
|
23 |
pv.set_plot_theme("document")
|
24 |
+
pl = pv.Plotter(shape=(2, 1),
|
25 |
window_size=(800, 800))
|
26 |
|
27 |
netG = DCGAN3D_G(64, 512, 1, 32, 1)
|
|
|
54 |
|
55 |
pl.subplot(0, 0)
|
56 |
_ = pl.add_mesh(slices, cmap="gray")
|
57 |
+
pl.subplot(1, 0)
|
58 |
_ = pl.add_mesh(mesh, scalars=dist)
|
59 |
pl.export_html('pyvista.html')
|
60 |
|
61 |
st.header("test html import")
|
62 |
+
view_width = 800
|
63 |
view_height = 800
|
64 |
HtmlFile = open("pyvista.html", 'r', encoding='utf-8')
|
65 |
source_code = HtmlFile.read()
|