Spaces:
Runtime error
Runtime error
Update app.py
#2
by
akshatjain1004
- opened
app.py
CHANGED
@@ -31,7 +31,7 @@ btn = st.button("Predict")
|
|
31 |
# Create a function to load model
|
32 |
@st.cache(allow_output_mutation=True)
|
33 |
def load_model():
|
34 |
-
model_path = './model_1_updated' # Update with the correct file name
|
35 |
|
36 |
# Load the model configuration
|
37 |
config = AutoConfig.from_pretrained(model_path)
|
|
|
31 |
# Create a function to load model
|
32 |
@st.cache(allow_output_mutation=True)
|
33 |
def load_model():
|
34 |
+
model_path = './model_1_updated.pth' # Update with the correct file name
|
35 |
|
36 |
# Load the model configuration
|
37 |
config = AutoConfig.from_pretrained(model_path)
|