teaevo commited on
Commit
43d191a
·
1 Parent(s): 3380313

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -31,6 +31,16 @@ def chatbot_response(user_message):
31
 
32
  return response
33
 
 
 
 
 
 
 
 
 
 
 
34
  if __name__ == '__main__':
35
  print("Chatbot: Hello! I'm your chatbot. Type 'exit' to end the conversation.")
36
 
@@ -43,3 +53,6 @@ if __name__ == '__main__':
43
  response = chatbot_response(user_input)
44
  print("Chatbot:", response)
45
 
 
 
 
 
31
 
32
  return response
33
 
34
+ user_input = input("You: ")
35
+
36
+ gr.Interface(
37
+ chatbot_response,
38
+ inputs=user_input,
39
+ outputs=gr.outputs.Label(num_top_classes=2),
40
+ title="NLP Test",
41
+ ).launch()
42
+
43
+ """
44
  if __name__ == '__main__':
45
  print("Chatbot: Hello! I'm your chatbot. Type 'exit' to end the conversation.")
46
 
 
53
  response = chatbot_response(user_input)
54
  print("Chatbot:", response)
55
 
56
+ """
57
+
58
+