Spaces:
No application file
No application file
File size: 405 Bytes
a85c9b8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from embedchain import App
app = App.from_config("config.yaml")
app.add("/path/to/your/folder", data_type="directory")
while True:
user_input = input("Enter your question (type 'exit' to quit): ")
# Break the loop if the user types 'exit'
if user_input.lower() == "exit":
break
# Process the input and provide a response
response = app.chat(user_input)
print(response)
|