Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -249,7 +249,7 @@ def main(query: str, client: QdrantClient, collection_name: str, llm, dense_mode
|
|
249 |
if st.session_state.documents_only:
|
250 |
prompt = idk(query)
|
251 |
answer = gen_text(prompt, max_tokens=128, sampling_params=SamplingParams(temperature=0.6, top_p=0.9))
|
252 |
-
print(f'TYPE: {type(answer)})
|
253 |
else:
|
254 |
prompt = self_knowledge(query)
|
255 |
answer = gen_text(prompt, max_tokens=300, sampling_params=SamplingParams(temperature=0.6, top_p=0.9))
|
|
|
249 |
if st.session_state.documents_only:
|
250 |
prompt = idk(query)
|
251 |
answer = gen_text(prompt, max_tokens=128, sampling_params=SamplingParams(temperature=0.6, top_p=0.9))
|
252 |
+
print(f'TYPE: {type(answer)}')
|
253 |
else:
|
254 |
prompt = self_knowledge(query)
|
255 |
answer = gen_text(prompt, max_tokens=300, sampling_params=SamplingParams(temperature=0.6, top_p=0.9))
|