Spaces:
Build error
Build error
jskinner215
commited on
Commit
·
0421f48
1
Parent(s):
f8ac089
Update ui_utils.py
Browse files- ui_utils.py +2 -0
ui_utils.py
CHANGED
@@ -74,6 +74,7 @@ def display_query_input(client, selected_class, tokenizer, model): # Added para
|
|
74 |
def query_tapas_with_weaviate_data(client, selected_class, question, tokenizer, model):
|
75 |
# 1. Perform hybrid search
|
76 |
data = weaviate_utils.hybrid_search_weaviate(client, selected_class, question)
|
|
|
77 |
|
78 |
# 2. Convert the data to TAPAS format
|
79 |
table = weaviate_utils.convert_to_tapas_format(data)
|
@@ -85,3 +86,4 @@ def query_tapas_with_weaviate_data(client, selected_class, question, tokenizer,
|
|
85 |
for answer in answers:
|
86 |
st.write(f"Answer: {answer}")
|
87 |
|
|
|
|
74 |
def query_tapas_with_weaviate_data(client, selected_class, question, tokenizer, model):
|
75 |
# 1. Perform hybrid search
|
76 |
data = weaviate_utils.hybrid_search_weaviate(client, selected_class, question)
|
77 |
+
st.write(f"Data from Weaviate: {data}") # Logging data from Weaviate
|
78 |
|
79 |
# 2. Convert the data to TAPAS format
|
80 |
table = weaviate_utils.convert_to_tapas_format(data)
|
|
|
86 |
for answer in answers:
|
87 |
st.write(f"Answer: {answer}")
|
88 |
|
89 |
+
|