meet2akhil commited on
Commit
21d5b0a
·
verified ·
1 Parent(s): 1ba3455

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import random
3
 
4
- def respond(Jonny_Silverhand):
5
  responses = {
6
  "night city": [
7
  "Night City is a vibrant and dangerous place! What do you want to know about it?",
@@ -35,7 +35,7 @@ def respond(Jonny_Silverhand):
35
  ]
36
  }
37
 
38
- Jonny_Silverhand = user_input.lower()
39
  for key in responses:
40
  if key in user_input:
41
  return random.choice(responses[key])
 
1
  import gradio as gr
2
  import random
3
 
4
+ def respond(user_input):
5
  responses = {
6
  "night city": [
7
  "Night City is a vibrant and dangerous place! What do you want to know about it?",
 
35
  ]
36
  }
37
 
38
+ user_input = user_input.lower()
39
  for key in responses:
40
  if key in user_input:
41
  return random.choice(responses[key])