Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,8 +21,11 @@ def generate_response(user_input):
|
|
| 21 |
return response
|
| 22 |
|
| 23 |
# Start the chat loop
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
| 26 |
if user_input == "quit":
|
| 27 |
break
|
| 28 |
bot_response = generate_response(user_input)
|
|
|
|
| 21 |
return response
|
| 22 |
|
| 23 |
# Start the chat loop
|
| 24 |
+
try:
|
| 25 |
+
line = input("Enter your input: ")
|
| 26 |
+
# Process the input here
|
| 27 |
+
except EOFError:
|
| 28 |
+
print("No input provided or reached end of file.")
|
| 29 |
if user_input == "quit":
|
| 30 |
break
|
| 31 |
bot_response = generate_response(user_input)
|