Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,17 +79,11 @@ def gradio_chatbot(user_message: str):
|
|
79 |
# Terminal-based chat loop
|
80 |
def terminal_chat():
|
81 |
"""
|
82 |
-
Chat loop for terminal interaction
|
83 |
"""
|
84 |
while True:
|
85 |
try:
|
86 |
user_input = input("User: ").strip()
|
87 |
-
|
88 |
-
# Check if the user wants to quit
|
89 |
-
if user_input.lower() in ["quit", "exit", "q"]:
|
90 |
-
print("Goodbye!")
|
91 |
-
break # Exit the loop
|
92 |
-
|
93 |
# Process input through the chatbot
|
94 |
response = stream_graph_updates(user_input)
|
95 |
print(f"Assistant: {response}")
|
|
|
79 |
# Terminal-based chat loop
|
80 |
def terminal_chat():
|
81 |
"""
|
82 |
+
Chat loop for terminal interaction.
|
83 |
"""
|
84 |
while True:
|
85 |
try:
|
86 |
user_input = input("User: ").strip()
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
# Process input through the chatbot
|
88 |
response = stream_graph_updates(user_input)
|
89 |
print(f"Assistant: {response}")
|