import reorg
Browse files
app.py
CHANGED
@@ -1,13 +1,7 @@
|
|
1 |
-
# For neural networks
|
2 |
import keras
|
3 |
-
# For random calculations
|
4 |
import numpy
|
5 |
-
|
6 |
import gradio
|
7 |
import pandas
|
8 |
-
|
9 |
-
|
10 |
-
# New for geometry creation
|
11 |
import glob
|
12 |
import os
|
13 |
import shutil
|
@@ -15,21 +9,13 @@ import stat
|
|
15 |
import math
|
16 |
import platform
|
17 |
import scipy.spatial
|
|
|
|
|
18 |
|
19 |
# Disable eager execution because its bad
|
20 |
from tensorflow.python.framework.ops import disable_eager_execution
|
21 |
disable_eager_execution()
|
22 |
|
23 |
-
|
24 |
-
# Big bunch of geometry stuff
|
25 |
-
import glob
|
26 |
-
import os
|
27 |
-
import shutil
|
28 |
-
import stat
|
29 |
-
import math
|
30 |
-
import platform
|
31 |
-
import scipy.spatial
|
32 |
-
|
33 |
class Mesh:
|
34 |
def __init__(self):
|
35 |
# Define blank values
|
@@ -1240,10 +1226,6 @@ class Network(object):
|
|
1240 |
return table
|
1241 |
|
1242 |
|
1243 |
-
|
1244 |
-
import plotly.graph_objects as go
|
1245 |
-
|
1246 |
-
|
1247 |
def plotly_fig(values):
|
1248 |
X, Y, Z = numpy.mgrid[0:1:32j, 0:1:32j, 0:1:32j]
|
1249 |
fig = go.Figure(data=go.Volume(
|
@@ -1302,8 +1284,7 @@ def change_textbox(choice, length, height, width, diameter):
|
|
1302 |
elif choice == "cone":
|
1303 |
return [gradio.Slider.update(visible=True), gradio.Slider.update(visible=False), gradio.Slider.update(visible=True), gradio.Slider.update(visible=False), gradio.Plot.update(fig)]
|
1304 |
|
1305 |
-
|
1306 |
-
import random
|
1307 |
|
1308 |
def randomize_analysis(choice):
|
1309 |
if choice == "Construct Shape from Parameters":
|
|
|
|
|
1 |
import keras
|
|
|
2 |
import numpy
|
|
|
3 |
import gradio
|
4 |
import pandas
|
|
|
|
|
|
|
5 |
import glob
|
6 |
import os
|
7 |
import shutil
|
|
|
9 |
import math
|
10 |
import platform
|
11 |
import scipy.spatial
|
12 |
+
import plotly.graph_objects as go
|
13 |
+
import random
|
14 |
|
15 |
# Disable eager execution because its bad
|
16 |
from tensorflow.python.framework.ops import disable_eager_execution
|
17 |
disable_eager_execution()
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
class Mesh:
|
20 |
def __init__(self):
|
21 |
# Define blank values
|
|
|
1226 |
return table
|
1227 |
|
1228 |
|
|
|
|
|
|
|
|
|
1229 |
def plotly_fig(values):
|
1230 |
X, Y, Z = numpy.mgrid[0:1:32j, 0:1:32j, 0:1:32j]
|
1231 |
fig = go.Figure(data=go.Volume(
|
|
|
1284 |
elif choice == "cone":
|
1285 |
return [gradio.Slider.update(visible=True), gradio.Slider.update(visible=False), gradio.Slider.update(visible=True), gradio.Slider.update(visible=False), gradio.Plot.update(fig)]
|
1286 |
|
1287 |
+
|
|
|
1288 |
|
1289 |
def randomize_analysis(choice):
|
1290 |
if choice == "Construct Shape from Parameters":
|