Spaces:
Build error
Build error
sachin the king commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import pygad.gann
|
|
| 6 |
|
| 7 |
# Load model and create Gradio interface
|
| 8 |
def load_model():
|
| 9 |
-
with open('smart_grid_model(1).pkl', 'rb') as f:
|
| 10 |
model_data = pickle.load(f)
|
| 11 |
return model_data['GANN_instance'], model_data['best_solution_idx'], model_data['scaler']
|
| 12 |
|
|
|
|
| 6 |
|
| 7 |
# Load model and create Gradio interface
|
| 8 |
def load_model():
|
| 9 |
+
with open('smart_grid_model (1).pkl', 'rb') as f:
|
| 10 |
model_data = pickle.load(f)
|
| 11 |
return model_data['GANN_instance'], model_data['best_solution_idx'], model_data['scaler']
|
| 12 |
|