vissot commited on
Commit
be54537
·
verified ·
1 Parent(s): c0cb47c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -5,6 +5,20 @@ import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity!
 
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
 
8
+ #preditc next word libraries
9
+ import tensorflow as tf
10
+ from tensorflow.keras.preprocessing.text import Tokenizer
11
+ from tensorflow.keras.layers import Embedding, LSTM, Dense,GRU, Bidirectional
12
+ from tensorflow.keras.models import Sequential
13
+ from tensorflow.keras.utils import to_categorical
14
+ from tensorflow.keras.optimizers import Adam
15
+ import pickle
16
+ import numpy as np
17
+ import os
18
+ from sklearn.model_selection import train_test_split
19
+ from tensorflow.keras.callbacks import ModelCheckpoint
20
+ from tensorflow.keras.models import load_model
21
+
22
  from Gradio_UI import GradioUI
23
 
24
  # Below is an example of a tool that does nothing. Amaze us with your creativity!