Spaces:
Runtime error
Runtime error
gorkemgoknar
commited on
Commit
•
d052ee9
1
Parent(s):
8328647
Update app.py
Browse files
app.py
CHANGED
@@ -268,6 +268,11 @@ async def add_text(char1,char2,runs,context,initial_question,history):
|
|
268 |
last_question=None
|
269 |
# todo build a context from dropdown
|
270 |
returned_history = ""
|
|
|
|
|
|
|
|
|
|
|
271 |
for i in range(int(runs)+1):
|
272 |
print("char1:",char1," :", initial_question)
|
273 |
returned_history += char1 + " : " + initial_question + "\n"
|
|
|
268 |
last_question=None
|
269 |
# todo build a context from dropdown
|
270 |
returned_history = ""
|
271 |
+
unnamed_question="This weird guy did not input anything.. so, tell me a joke!"
|
272 |
+
if initial_question is None:
|
273 |
+
initial_question = unnamed_question
|
274 |
+
if initial_question=="":
|
275 |
+
initial_question = unnamed_question
|
276 |
for i in range(int(runs)+1):
|
277 |
print("char1:",char1," :", initial_question)
|
278 |
returned_history += char1 + " : " + initial_question + "\n"
|