ipvikas commited on
Commit
6796c61
1 Parent(s): 1180962

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -179,6 +179,8 @@ def wikipedia_data(input_text):
179
  topic = reg_ex.group(1)
180
  wiki = wk.summary(topic, sentences = 3)
181
  return wiki
 
 
182
  except Exception as e:
183
  print("I do not understand...Please rephrase")
184
 
@@ -213,6 +215,6 @@ def get_response(input_text):
213
 
214
 
215
  title = "WeASK: ChatBOT"
216
- description = "Ask your query here"
217
  chatbot_demo = gr.Interface(fn=get_response, inputs = 'text',outputs='text',title = title, description = description)
218
  chatbot_demo.launch()
 
179
  topic = reg_ex.group(1)
180
  wiki = wk.summary(topic, sentences = 3)
181
  return wiki
182
+ else:
183
+ print("My apology, Can you please rephrase your query?")
184
  except Exception as e:
185
  print("I do not understand...Please rephrase")
186
 
 
215
 
216
 
217
  title = "WeASK: ChatBOT"
218
+ description = "Hi!!!! How can I help you"
219
  chatbot_demo = gr.Interface(fn=get_response, inputs = 'text',outputs='text',title = title, description = description)
220
  chatbot_demo.launch()