tonyhui2234 commited on
Commit
76b7bfa
·
verified ·
1 Parent(s): 5d5edff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -187,11 +187,12 @@ def stick_enquiry_callback():
187
  row_detail = st.session_state.fortune_row.get("Detail", "No detail available.")
188
 
189
  # Classify the question to determine which fortune detail to use
190
- classifiy = load_finetuned_classifier_model(question)
191
  # Generate an explanation based on the classification and fortune detail
192
- cfu_explain = analysis(row_detail, classifiy, question)
193
  # Save the generated explanation for display
194
  st.session_state.cfu_explain_text = cfu_explain
 
195
  st.session_state.stick_clicked = True
196
 
197
  # --------------------------- Layout & Display ---------------------------
 
187
  row_detail = st.session_state.fortune_row.get("Detail", "No detail available.")
188
 
189
  # Classify the question to determine which fortune detail to use
190
+ classify = load_finetuned_classifier_model(question)
191
  # Generate an explanation based on the classification and fortune detail
192
+ # cfu_explain = analysis(row_detail, classify, question)
193
  # Save the generated explanation for display
194
  st.session_state.cfu_explain_text = cfu_explain
195
+ st.session_state.cfu_explain_text = classify
196
  st.session_state.stick_clicked = True
197
 
198
  # --------------------------- Layout & Display ---------------------------