Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from todset import todset
|
3 |
-
from keras.
|
|
|
|
|
|
|
4 |
|
5 |
def train(data: str, message: str):
|
6 |
if "→" not in data and "\n" not in data:
|
|
|
1 |
import gradio as gr
|
2 |
from todset import todset
|
3 |
+
from keras.models import Sequential
|
4 |
+
from keras.layers import Embedding, Dense, Dropout, Flatten, PReLU
|
5 |
+
from keras.preprocessing.text import Tokenizer
|
6 |
+
from keras_self_attention import SeqSelfAttention, SeqWeightedAttention
|
7 |
|
8 |
def train(data: str, message: str):
|
9 |
if "→" not in data and "\n" not in data:
|