Update app.py
Browse files
app.py
CHANGED
@@ -126,6 +126,19 @@ def generate_response(prompt: str) -> str:
|
|
126 |
return generated_text
|
127 |
|
128 |
|
129 |
-
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
|
|
|
126 |
return generated_text
|
127 |
|
128 |
|
129 |
+
def main():
|
130 |
+
print("Welcome to the Chatbot!")
|
131 |
+
print("Type 'exit' to end the conversation.")
|
132 |
+
|
133 |
+
while True:
|
134 |
+
user_input = input("You: ")
|
135 |
+
|
136 |
+
if user_input.lower() == 'exit':
|
137 |
+
print("Goodbye!")
|
138 |
+
break
|
139 |
+
|
140 |
+
response = generate_response(user_input)
|
141 |
+
print("Chatbot:", response)
|
142 |
+
|
143 |
+
main()
|
144 |
|