mbarnig commited on
Commit
9f94b8d
1 Parent(s): 7b6c1a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -108,7 +108,7 @@ async def generate_response(user_input):
108
 
109
  # Gradio interface function (generator)
110
  async def gradio_chat_interface(mode, password, user_input, example):
111
- if mode == "Exemples":
112
  filename = example[-6:-2] + ".md"
113
  file = open("examples/" + filename, "r")
114
  output = file.read()
@@ -116,7 +116,7 @@ async def gradio_chat_interface(mode, password, user_input, example):
116
  else:
117
  # check the password
118
  if password == "":
119
- yield "Ouni RTL-Passwuert fonctionnéirt d'Sich net !"
120
  elif password != mypassword:
121
  yield "Gitt dat richtegt RTL-Passwuert an !"
122
  else:
 
108
 
109
  # Gradio interface function (generator)
110
  async def gradio_chat_interface(mode, password, user_input, example):
111
+ if mode == "Beispiller":
112
  filename = example[-6:-2] + ".md"
113
  file = open("examples/" + filename, "r")
114
  output = file.read()
 
116
  else:
117
  # check the password
118
  if password == "":
119
+ yield "Ouni RTL-Passwuert fonctionnéiert d'Sich net !"
120
  elif password != mypassword:
121
  yield "Gitt dat richtegt RTL-Passwuert an !"
122
  else: