za3karia commited on
Commit
ee3393e
·
verified ·
1 Parent(s): 8e5a67a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -22
app.py CHANGED
@@ -55,30 +55,29 @@ if st.session_state['repo_type'] == "private":
55
  st.session_state['reponame'] = st.text_input("hashicorp/terraform")
56
 
57
  # Load button to fetch repo data (simulated with mock data)
58
- if st.button("Load Repository Data"):
59
  st.session_state['selected_branches'] = mock_branches # Simulate fetching branches
60
  st.session_state['selected_contributor'] = '' # Reset selected contributor
61
-
62
- # Branch selection
63
- branch_option = st.radio("Select branches:", options=["all", "specific"])
64
-
65
- if branch_option == "specific":
66
- st.session_state['selected_branches'] = st.multiselect("Select branches", options=mock_branches, default=mock_branches)
67
-
68
- # Contributor selection
69
- st.session_state['selected_contributor'] = st.selectbox("Select contributor name", options=mock_contributors)
70
-
71
- # Get recap button
72
- if st.button("Get Recap"):
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
 
75
- # Placeholder for GitHub markdown content
76
- rs.slides(markdown, height=500)
77
-
78
- # Chat prompt (future feature)
79
- st.text_input("Ask any question about the contributor:", on_change=None, key="chat_prompt")
80
 
81
- if st.button("ask"):
82
- st.write("Feature coming soon!")
83
-
84
-
 
55
  st.session_state['reponame'] = st.text_input("hashicorp/terraform")
56
 
57
  # Load button to fetch repo data (simulated with mock data)
58
+ if st.button("sync"):
59
  st.session_state['selected_branches'] = mock_branches # Simulate fetching branches
60
  st.session_state['selected_contributor'] = '' # Reset selected contributor
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
+ # Branch selection
63
+ branch_option = st.radio("Select branches:", options=["all", "specific"])
64
+
65
+ if branch_option == "specific":
66
+ st.session_state['selected_branches'] = st.multiselect("Select branches", options=mock_branches, default=mock_branches)
67
+
68
+ # Contributor selection
69
+ st.session_state['selected_contributor'] = st.selectbox("Select contributor name", options=mock_contributors)
70
+
71
+ # Get recap button
72
+ if st.button("Get Recap"):
73
+
74
+ # Placeholder for GitHub markdown content
75
+ rs.slides(markdown, height=500)
76
+
77
+ # Chat prompt (future feature)
78
+ st.text_input("Ask any question about the contributor:", on_change=None, key="chat_prompt")
79
+
80
+ # if st.button("ask"):
81
+ # st.write("Feature coming soon!")
82
 
 
 
 
 
 
83