Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -295,7 +295,7 @@ def submit_query(
|
|
| 295 |
"""Run the FAQ pipeline and clear the query input after submit."""
|
| 296 |
updated_history, trace_id, info_candidates = faq_pipeline(query, similarity_threshold, top_k,
|
| 297 |
cross_encoder_threshold, history)
|
| 298 |
-
return updated_history, trace_id, info_candidates
|
| 299 |
|
| 300 |
def list_candidates(candidates: Optional[list]) -> str:
|
| 301 |
"""Format the list of candidates for display in the Gradio interface.
|
|
|
|
| 295 |
"""Run the FAQ pipeline and clear the query input after submit."""
|
| 296 |
updated_history, trace_id, info_candidates = faq_pipeline(query, similarity_threshold, top_k,
|
| 297 |
cross_encoder_threshold, history)
|
| 298 |
+
return updated_history, trace_id, "", info_candidates
|
| 299 |
|
| 300 |
def list_candidates(candidates: Optional[list]) -> str:
|
| 301 |
"""Format the list of candidates for display in the Gradio interface.
|