Spaces:
Sleeping
Sleeping
Sandaruth
commited on
Commit
·
21ed937
1
Parent(s):
fb5230e
finish v0.1
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ def chatbot_response(user_input): # Open AI GPT-3 and Google T5
|
|
7 |
start_time = time.time()
|
8 |
print_colorful_msg(f"User Input: {user_input}", color='green')
|
9 |
res = Web_qa(user_input)
|
|
|
10 |
response = res['result']
|
11 |
metadata = [i.metadata for i in res.get("source_documents", [])]
|
12 |
end_time = time.time()
|
|
|
7 |
start_time = time.time()
|
8 |
print_colorful_msg(f"User Input: {user_input}", color='green')
|
9 |
res = Web_qa(user_input)
|
10 |
+
print_colorful_msg(f"Response: {res}", color='green')
|
11 |
response = res['result']
|
12 |
metadata = [i.metadata for i in res.get("source_documents", [])]
|
13 |
end_time = time.time()
|