Spaces:
Runtime error
Runtime error
MarcoAland
commited on
Commit
•
eccab96
1
Parent(s):
6864151
Update
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ settings = {
|
|
18 |
async def generate_response(user_input: str) -> str:
|
19 |
message = "Namamu adalah Mitrakara.\n\n" + user_input
|
20 |
# Call documents options or not
|
21 |
-
if "dokumen
|
22 |
prompt = RAG_Trwira.main(message[10:])
|
23 |
else:
|
24 |
prompt = message
|
|
|
18 |
async def generate_response(user_input: str) -> str:
|
19 |
message = "Namamu adalah Mitrakara.\n\n" + user_input
|
20 |
# Call documents options or not
|
21 |
+
if "dokumen" in message.lower() or "document" in message.lower() or "documents" in message.lower():
|
22 |
prompt = RAG_Trwira.main(message[10:])
|
23 |
else:
|
24 |
prompt = message
|