Spaces:
Sleeping
Sleeping
Commit
路
2b18376
1
Parent(s):
eece087
Fixed NameError: Defined model_dir
Browse files
app.py
CHANGED
@@ -18,6 +18,9 @@ delta_H = -50000 # Heat of reaction (J/mol)
|
|
18 |
rho = 1 # Density in kg/L
|
19 |
Cp = 4184 # Heat capacity in J/kg路K
|
20 |
|
|
|
|
|
|
|
21 |
# Define Gradio inference function
|
22 |
def predict_cstr(CA_in, T_in, F):
|
23 |
# Load scalers and model
|
|
|
18 |
rho = 1 # Density in kg/L
|
19 |
Cp = 4184 # Heat capacity in J/kg路K
|
20 |
|
21 |
+
# Define the model directory
|
22 |
+
model_dir = "./model"
|
23 |
+
|
24 |
# Define Gradio inference function
|
25 |
def predict_cstr(CA_in, T_in, F):
|
26 |
# Load scalers and model
|