Update app.py
Browse files
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 |
-
|
191 |
# Generate an explanation based on the classification and fortune detail
|
192 |
-
cfu_explain = analysis(row_detail,
|
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 ---------------------------
|