Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ Original file is located at
|
|
9 |
import gradio as gr
|
10 |
########### 1 ###########
|
11 |
|
12 |
-
|
13 |
#intents.json --> nltk_utils.py --> model.py --> train.ipynb --> chat.ipynb
|
14 |
import numpy as np
|
15 |
import nltk
|
@@ -240,8 +240,6 @@ torch.save(data, FILE)
|
|
240 |
|
241 |
#print(f'training complete. file saved to {FILE}') #commented
|
242 |
|
243 |
-
# !nvidia-smi
|
244 |
-
#https://github.com/python-engineer/pytorch-chatbot
|
245 |
|
246 |
import random
|
247 |
import string # to process standard python strings
|
@@ -330,7 +328,7 @@ def get_response(input_text):
|
|
330 |
|
331 |
#return classifier(sentence)
|
332 |
|
333 |
-
title = "ChatBOT"
|
334 |
|
335 |
-
chatbot_demo = gr.Interface(fn=get_response, inputs = 'text',outputs='text',title = title
|
336 |
chatbot_demo.launch()
|
|
|
9 |
import gradio as gr
|
10 |
########### 1 ###########
|
11 |
|
12 |
+
|
13 |
#intents.json --> nltk_utils.py --> model.py --> train.ipynb --> chat.ipynb
|
14 |
import numpy as np
|
15 |
import nltk
|
|
|
240 |
|
241 |
#print(f'training complete. file saved to {FILE}') #commented
|
242 |
|
|
|
|
|
243 |
|
244 |
import random
|
245 |
import string # to process standard python strings
|
|
|
328 |
|
329 |
#return classifier(sentence)
|
330 |
|
331 |
+
title = "WeASK: ChatBOT"
|
332 |
|
333 |
+
chatbot_demo = gr.Interface(fn=get_response, inputs = 'text',outputs='text',title = title)
|
334 |
chatbot_demo.launch()
|