ipvikas commited on
Commit
e34a42b
1 Parent(s): c681394

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -19
app.py CHANGED
@@ -94,15 +94,15 @@ import torch.nn as nn
94
  from torch.utils.data import Dataset, DataLoader
95
 
96
  #2. Loading our JSON Data
97
- from google.colab import drive
98
- drive.mount('/content/drive')
99
 
100
  # Commented out IPython magic to ensure Python compatibility.
101
  # %cd '/content/drive/My Drive/Colab Notebooks/NLP/ChatBot/'
102
 
103
- path = '/content/drive/My Drive/Colab Notebooks/NLP/ChatBot/intents.json'
104
 
105
- !pwd
106
 
107
  import json
108
  with open(path, 'r') as f:
@@ -116,7 +116,7 @@ with open(path, 'r') as f:
116
  # Commented out IPython magic to ensure Python compatibility.
117
  # %pwd
118
 
119
- !ls
120
 
121
  import nltk
122
  nltk.download('punkt')
@@ -255,8 +255,8 @@ import torch
255
  import nltk
256
  nltk.download('punkt')
257
 
258
- from google.colab import drive
259
- drive.mount("/content/drive")
260
 
261
  # Commented out IPython magic to ensure Python compatibility.
262
  # %cd "/content/drive/My Drive/Colab Notebooks/NLP/ChatBot/"
@@ -339,15 +339,3 @@ while True:
339
  else:
340
  print(f"{bot_name}: I do not understand...")
341
 
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
 
94
  from torch.utils.data import Dataset, DataLoader
95
 
96
  #2. Loading our JSON Data
97
+ #from google.colab import drive #commented
98
+ #drive.mount('/content/drive') #commented
99
 
100
  # Commented out IPython magic to ensure Python compatibility.
101
  # %cd '/content/drive/My Drive/Colab Notebooks/NLP/ChatBot/'
102
 
103
+ #path = '/content/drive/My Drive/Colab Notebooks/NLP/ChatBot/intents.json'
104
 
105
+ #!pwd
106
 
107
  import json
108
  with open(path, 'r') as f:
 
116
  # Commented out IPython magic to ensure Python compatibility.
117
  # %pwd
118
 
119
+ #!ls
120
 
121
  import nltk
122
  nltk.download('punkt')
 
255
  import nltk
256
  nltk.download('punkt')
257
 
258
+ #from google.colab import drive #commented
259
+ #drive.mount("/content/drive") #commented
260
 
261
  # Commented out IPython magic to ensure Python compatibility.
262
  # %cd "/content/drive/My Drive/Colab Notebooks/NLP/ChatBot/"
 
339
  else:
340
  print(f"{bot_name}: I do not understand...")
341