Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def respond(message, chat_history):
|
|
26 |
output = chain.get_response(query=question, k=100, model_name="gpt-4-1106-preview", type="stuff")
|
27 |
print(output)
|
28 |
time_taken = time.time() - start_time
|
29 |
-
save_log(file_path='logs/
|
30 |
bot_message = output
|
31 |
chat_history.append((message, bot_message))
|
32 |
time.sleep(2)
|
|
|
26 |
output = chain.get_response(query=question, k=100, model_name="gpt-4-1106-preview", type="stuff")
|
27 |
print(output)
|
28 |
time_taken = time.time() - start_time
|
29 |
+
save_log(file_path='logs/policy_combined_hf.csv', query=question, response=output, model_name="gpt-4-1106-preview", time_taken=time_taken, inp="Policy", data="Policy/1")
|
30 |
bot_message = output
|
31 |
chat_history.append((message, bot_message))
|
32 |
time.sleep(2)
|