Spaces:
Sleeping
Sleeping
Import numpy
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import gradio as gr
|
|
| 2 |
import pickle
|
| 3 |
from keras.models import load_model
|
| 4 |
from keras_self_attention import SeqSelfAttention
|
|
|
|
| 5 |
|
| 6 |
model = load_model("model.keras", custom_objects={"SeqSelfAttention":SeqSelfAttention})
|
| 7 |
with open("tokenizer.pckl", "rb") as file:
|
|
|
|
| 2 |
import pickle
|
| 3 |
from keras.models import load_model
|
| 4 |
from keras_self_attention import SeqSelfAttention
|
| 5 |
+
import numpy as np
|
| 6 |
|
| 7 |
model = load_model("model.keras", custom_objects={"SeqSelfAttention":SeqSelfAttention})
|
| 8 |
with open("tokenizer.pckl", "rb") as file:
|