Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import fastapi
|
|
2 |
# from transformers import pipeline
|
3 |
import h5py
|
4 |
import keras
|
|
|
|
|
|
|
5 |
|
6 |
# Load the model from the HDF5 file
|
7 |
model = keras.models.load_model("model_finetuned.h5")
|
|
|
2 |
# from transformers import pipeline
|
3 |
import h5py
|
4 |
import keras
|
5 |
+
from fastapi import FastAPI
|
6 |
+
|
7 |
+
app = FastAPI()
|
8 |
|
9 |
# Load the model from the HDF5 file
|
10 |
model = keras.models.load_model("model_finetuned.h5")
|