jskinner215 commited on
Commit
d575d33
·
1 Parent(s): 0421f48

Update ui_utils.py

Browse files
Files changed (1) hide show
  1. ui_utils.py +4 -2
ui_utils.py CHANGED
@@ -78,10 +78,12 @@ def query_tapas_with_weaviate_data(client, selected_class, question, tokenizer,
78
 
79
  # 2. Convert the data to TAPAS format
80
  table = weaviate_utils.convert_to_tapas_format(data)
81
-
 
82
  # 3. Call TAPAS with the table and the question
83
  answers = tapas_utils.ask_llm_chunk(tokenizer, model, table, [question])
84
-
 
85
  # Display the answers
86
  for answer in answers:
87
  st.write(f"Answer: {answer}")
 
78
 
79
  # 2. Convert the data to TAPAS format
80
  table = weaviate_utils.convert_to_tapas_format(data)
81
+ st.write(f"Data for TAPAS: {table}") # Logging data from TAPAS Table
82
+
83
  # 3. Call TAPAS with the table and the question
84
  answers = tapas_utils.ask_llm_chunk(tokenizer, model, table, [question])
85
+ st.write(f"TAPAS answers: {answers}") # Logging data from TAPAS Answers
86
+
87
  # Display the answers
88
  for answer in answers:
89
  st.write(f"Answer: {answer}")