Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ else:
|
|
123 |
updated_name = st.text_input("Name", value=selected_record['name'])
|
124 |
updated_document = st.text_area("Document", value=selected_record['document'])
|
125 |
updated_evaluation_text = st.text_area("Evaluation Text", value=selected_record['evaluationText'])
|
126 |
-
updated_evaluation_score = st.
|
127 |
|
128 |
# Update button
|
129 |
if st.button("🔄 Update Record"):
|
@@ -132,7 +132,7 @@ else:
|
|
132 |
"name": updated_name,
|
133 |
"document": updated_document,
|
134 |
"evaluationText": updated_evaluation_text,
|
135 |
-
"evaluationScore": updated_evaluation_score
|
136 |
}
|
137 |
|
138 |
success, message = update_record(updated_record)
|
@@ -148,7 +148,7 @@ else:
|
|
148 |
new_name = st.text_input("Name")
|
149 |
new_document = st.text_area("Document")
|
150 |
new_evaluation_text = st.text_area("Evaluation Text")
|
151 |
-
new_evaluation_score = st.
|
152 |
|
153 |
col1, col2 = st.columns(2)
|
154 |
|
@@ -160,7 +160,7 @@ else:
|
|
160 |
"name": new_name,
|
161 |
"document": new_document,
|
162 |
"evaluationText": new_evaluation_text,
|
163 |
-
"evaluationScore": new_evaluation_score
|
164 |
}
|
165 |
|
166 |
success, response = insert_record(record)
|
|
|
123 |
updated_name = st.text_input("Name", value=selected_record['name'])
|
124 |
updated_document = st.text_area("Document", value=selected_record['document'])
|
125 |
updated_evaluation_text = st.text_area("Evaluation Text", value=selected_record['evaluationText'])
|
126 |
+
updated_evaluation_score = st.text_input("Evaluation Score", value=str(selected_record['evaluationScore']))
|
127 |
|
128 |
# Update button
|
129 |
if st.button("🔄 Update Record"):
|
|
|
132 |
"name": updated_name,
|
133 |
"document": updated_document,
|
134 |
"evaluationText": updated_evaluation_text,
|
135 |
+
"evaluationScore": updated_evaluation_score # Now treated as a string
|
136 |
}
|
137 |
|
138 |
success, message = update_record(updated_record)
|
|
|
148 |
new_name = st.text_input("Name")
|
149 |
new_document = st.text_area("Document")
|
150 |
new_evaluation_text = st.text_area("Evaluation Text")
|
151 |
+
new_evaluation_score = st.text_input("Evaluation Score") # Now treated as a string
|
152 |
|
153 |
col1, col2 = st.columns(2)
|
154 |
|
|
|
160 |
"name": new_name,
|
161 |
"document": new_document,
|
162 |
"evaluationText": new_evaluation_text,
|
163 |
+
"evaluationScore": new_evaluation_score # Insert as a string
|
164 |
}
|
165 |
|
166 |
success, response = insert_record(record)
|