chandralegend
commited on
Commit
•
46da71c
1
Parent(s):
42935e3
fixed color issue
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ st.table(st.session_state["guidelines"])
|
|
34 |
st.write("You can add new guidelines here.")
|
35 |
new_entity = st.text_input("Entity")
|
36 |
new_definition = st.text_input("Definition")
|
37 |
-
color = st.
|
38 |
if st.button("Add Guideline"):
|
39 |
st.session_state["guidelines"].append(
|
40 |
{"entity": new_entity, "definition": new_definition, "color": color}
|
@@ -92,6 +92,7 @@ def openai_chat_completion_response(final_prompt):
|
|
92 |
|
93 |
return response["choices"][0]["message"]["content"].strip(" \n")
|
94 |
|
|
|
95 |
colors = {}
|
96 |
for guideline in st.session_state["guidelines"]:
|
97 |
colors[guideline["entity"]] = guideline["color"]
|
|
|
34 |
st.write("You can add new guidelines here.")
|
35 |
new_entity = st.text_input("Entity")
|
36 |
new_definition = st.text_input("Definition")
|
37 |
+
color = st.text_input("Color")
|
38 |
if st.button("Add Guideline"):
|
39 |
st.session_state["guidelines"].append(
|
40 |
{"entity": new_entity, "definition": new_definition, "color": color}
|
|
|
92 |
|
93 |
return response["choices"][0]["message"]["content"].strip(" \n")
|
94 |
|
95 |
+
|
96 |
colors = {}
|
97 |
for guideline in st.session_state["guidelines"]:
|
98 |
colors[guideline["entity"]] = guideline["color"]
|