Update app.py
Browse files
app.py
CHANGED
@@ -79,25 +79,22 @@ def main(user):
|
|
79 |
chatbot = Chatbot(api_key=os.environ.get("test2"))
|
80 |
# Start chat
|
81 |
def get_input(var1):
|
82 |
-
"""
|
83 |
-
Multi-line input function
|
84 |
-
"""
|
85 |
# Display the prompt
|
86 |
print(user, end="")
|
87 |
-
|
88 |
# Initialize an empty list to store the input lines
|
89 |
lines = []
|
90 |
-
|
91 |
# Read lines of input until the user enters an empty line
|
92 |
while True:
|
93 |
line = input()
|
94 |
if line == "":
|
95 |
break
|
96 |
lines.append(line)
|
97 |
-
|
98 |
# Join the lines, separated by newlines, and store the result
|
99 |
user_input = "\n".join(lines)
|
100 |
-
|
101 |
# Return the input
|
102 |
return user_input
|
103 |
while True:
|
|
|
79 |
chatbot = Chatbot(api_key=os.environ.get("test2"))
|
80 |
# Start chat
|
81 |
def get_input(var1):
|
|
|
|
|
|
|
82 |
# Display the prompt
|
83 |
print(user, end="")
|
84 |
+
|
85 |
# Initialize an empty list to store the input lines
|
86 |
lines = []
|
87 |
+
|
88 |
# Read lines of input until the user enters an empty line
|
89 |
while True:
|
90 |
line = input()
|
91 |
if line == "":
|
92 |
break
|
93 |
lines.append(line)
|
94 |
+
|
95 |
# Join the lines, separated by newlines, and store the result
|
96 |
user_input = "\n".join(lines)
|
97 |
+
|
98 |
# Return the input
|
99 |
return user_input
|
100 |
while True:
|