muhammadsalmanalfaridzi commited on
Commit
a17b8f9
·
verified ·
1 Parent(s): d518481

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -45,6 +45,16 @@ def load_llm():
45
  )
46
  return llm
47
 
 
 
 
 
 
 
 
 
 
 
48
  with st.sidebar:
49
  st.header(f"Add your GitHub repository!")
50
 
 
45
  )
46
  return llm
47
 
48
+ def reset_chat():
49
+ st.session_state.messages = []
50
+ st.session_state.context = None
51
+ gc.collect()
52
+
53
+ def process_with_gitingets(github_url):
54
+ # or from URL
55
+ summary, tree, content = ingest(github_url)
56
+ return summary, tree, content
57
+
58
  with st.sidebar:
59
  st.header(f"Add your GitHub repository!")
60