deeksonparlma commited on
Commit
291e47a
·
1 Parent(s): 32c62e9
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -87,8 +87,12 @@ with open("intents.json") as file:
87
  data = json.load(file)
88
 
89
  with open("data.pickle", "rb") as f:
 
90
  words, labels, training, output = pickle.load(f)
91
 
 
 
 
92
  net = tflearn.input_data(shape=[None, len(training[0])])
93
  net = tflearn.fully_connected(net, 8)
94
  net = tflearn.fully_connected(net, 8)
@@ -133,8 +137,7 @@ def chat(message, history):
133
 
134
  chatbot = gr.Chatbot(label="Chat")
135
  css = """
136
- footer {display:none !important}
137
- .output-markdown{display:none !important}
138
  .gr-button-primary {
139
  z-index: 14;
140
  height: 43px;
@@ -143,7 +146,7 @@ footer {display:none !important}
143
  top: 0px;
144
  padding: 0px;
145
  cursor: pointer !important;
146
- background: none rgb(17, 20, 45) !important;
147
  border: none !important;
148
  text-align: center !important;
149
  font-family: Poppins !important;
 
87
  data = json.load(file)
88
 
89
  with open("data.pickle", "rb") as f:
90
+ data = pd.read_pickle(f)
91
  words, labels, training, output = pickle.load(f)
92
 
93
+ df = pd.DataFrame(data)
94
+ df.to_csv('data_train.csv', index=False)
95
+
96
  net = tflearn.input_data(shape=[None, len(training[0])])
97
  net = tflearn.fully_connected(net, 8)
98
  net = tflearn.fully_connected(net, 8)
 
137
 
138
  chatbot = gr.Chatbot(label="Chat")
139
  css = """
140
+
 
141
  .gr-button-primary {
142
  z-index: 14;
143
  height: 43px;
 
146
  top: 0px;
147
  padding: 0px;
148
  cursor: pointer !important;
149
+
150
  border: none !important;
151
  text-align: center !important;
152
  font-family: Poppins !important;