Spaces:
Running
Running
Update chain.py
Browse files
chain.py
CHANGED
@@ -88,7 +88,7 @@ def get_answer(
|
|
88 |
# Log user question
|
89 |
logging.info(f"User question: {question}")
|
90 |
|
91 |
-
|
92 |
|
93 |
wandb.log({"question": question })
|
94 |
|
@@ -100,4 +100,7 @@ def get_answer(
|
|
100 |
return_only_outputs=True,
|
101 |
)
|
102 |
response = f"Answer:\t{result['answer']}"
|
|
|
|
|
|
|
103 |
return response
|
|
|
88 |
# Log user question
|
89 |
logging.info(f"User question: {question}")
|
90 |
|
91 |
+
|
92 |
|
93 |
wandb.log({"question": question })
|
94 |
|
|
|
100 |
return_only_outputs=True,
|
101 |
)
|
102 |
response = f"Answer:\t{result['answer']}"
|
103 |
+
|
104 |
+
print("File writing complete."+"quest = "+question+" answer : "+ result['answer'])
|
105 |
+
|
106 |
return response
|