Spaces:
Sleeping
Sleeping
Commit ·
0f99604
1
Parent(s): 3914a1e
new update
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from huggingface_hub import hf_hub_download
|
|
| 5 |
import os
|
| 6 |
from tensorflow.keras.models import load_model
|
| 7 |
|
| 8 |
-
def
|
| 9 |
repo_id = 'Preethamreddy799/NLP_MODEL'
|
| 10 |
filename = 'model_test_steps.h5' # Assuming the model is in HDF5 format
|
| 11 |
|
|
@@ -18,7 +18,7 @@ def load_model():
|
|
| 18 |
print(f"Model loaded successfully from {cached_model_path}")
|
| 19 |
return model
|
| 20 |
|
| 21 |
-
model =
|
| 22 |
|
| 23 |
# Function to generate predictions
|
| 24 |
def generate_test_steps(acceptance_criteria, test_data):
|
|
|
|
| 5 |
import os
|
| 6 |
from tensorflow.keras.models import load_model
|
| 7 |
|
| 8 |
+
def load_model_test_steps():
|
| 9 |
repo_id = 'Preethamreddy799/NLP_MODEL'
|
| 10 |
filename = 'model_test_steps.h5' # Assuming the model is in HDF5 format
|
| 11 |
|
|
|
|
| 18 |
print(f"Model loaded successfully from {cached_model_path}")
|
| 19 |
return model
|
| 20 |
|
| 21 |
+
model = load_model_test_steps()
|
| 22 |
|
| 23 |
# Function to generate predictions
|
| 24 |
def generate_test_steps(acceptance_criteria, test_data):
|