Update app.py
Browse files
app.py
CHANGED
@@ -65,11 +65,8 @@ if Run_Button == True:
|
|
65 |
qna_pipeline = setModel(model_checkpoint)
|
66 |
output = qna_pipeline(question=selected_question, context=selected_context)
|
67 |
|
68 |
-
output["answer"] = str(output["answer"])
|
69 |
|
70 |
df = pd.DataFrame.from_dict(output)
|
71 |
-
|
72 |
-
df_final = df[cols_to_keep]
|
73 |
-
|
74 |
st.header("Answer")
|
75 |
-
st.dataframe(
|
|
|
65 |
qna_pipeline = setModel(model_checkpoint)
|
66 |
output = qna_pipeline(question=selected_question, context=selected_context)
|
67 |
|
|
|
68 |
|
69 |
df = pd.DataFrame.from_dict(output)
|
70 |
+
|
|
|
|
|
71 |
st.header("Answer")
|
72 |
+
st.dataframe(df)
|