Ifeeab05 commited on
Commit
6f9c508
·
verified ·
1 Parent(s): 7366b75

change random to rn

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import random as rn
3
  def respond_yes_no_randomly(message, history):
4
  responses = ["Yes", "No"]
5
- return random.choices(responses) #added here
6
 
7
  print("hELLO World")
8
  chatbot = gr.ChatInterface(respond_yes_no_randomly, type="messages", title="Yes No Bot") #chatbot UI - convo history & user input
 
2
  import random as rn
3
  def respond_yes_no_randomly(message, history):
4
  responses = ["Yes", "No"]
5
+ return rn.choices(responses) #added here
6
 
7
  print("hELLO World")
8
  chatbot = gr.ChatInterface(respond_yes_no_randomly, type="messages", title="Yes No Bot") #chatbot UI - convo history & user input