za3karia commited on
Commit
44c2922
·
verified ·
1 Parent(s): 038bb7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -22,6 +22,8 @@ if 'sync' not in st.session_state:
22
  st.session_state['sync'] = False
23
  if 'Recap' not in st.session_state:
24
  st.session_state['Recap'] = False
 
 
25
 
26
 
27
 
@@ -123,15 +125,15 @@ if st.session_state['sync']:
123
  st.write("Feature coming soon!")
124
  if st.session_state['commits']:
125
  st.table(st.session_state['commits'])
126
-
127
- if st.session_state['markdown']:
128
- rs.slides(markdown, height=500)
129
- # Chat prompt (future feature)
130
- st.session_state["question"] = st.text_input("Ask any question about the contributor:", on_change=None, key="chat_prompt")
131
 
132
- if st.button("ask"):
133
- st.session_state["response"] = chat_complete(f"given the following summaries of this contributor's commits {str(st.session_state['summaries'])} answer the following question: {str(st.session_state['question'])}")
134
- # st.write("Feature coming soon!")
 
 
 
 
 
135
 
136
 
137
 
 
22
  st.session_state['sync'] = False
23
  if 'Recap' not in st.session_state:
24
  st.session_state['Recap'] = False
25
+ if 'Summaries' not in st.session_state:
26
+ st.session_state['Summaries'] = []
27
 
28
 
29
 
 
125
  st.write("Feature coming soon!")
126
  if st.session_state['commits']:
127
  st.table(st.session_state['commits'])
 
 
 
 
 
128
 
129
+ if st.session_state['markdown']:
130
+ rs.slides(markdown, height=500)
131
+ # Chat prompt (future feature)
132
+ st.session_state["question"] = st.text_input("Ask any question about the contributor:", on_change=None, key="chat_prompt")
133
+
134
+ if st.button("ask"):
135
+ st.session_state["response"] = chat_complete(f"given the following summaries of this contributor's commits {str(st.session_state['summaries'])} answer the following question: {str(st.session_state['question'])}")
136
+ # st.write("Feature coming soon!")
137
 
138
 
139