Spaces:
Running
Running
Update app.py
Browse files
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 == "
|
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
|
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:
|