ashutoshchoudhari commited on
Commit
5bc193e
·
1 Parent(s): 25c00c5

created CICD pipeline

Browse files
Files changed (2) hide show
  1. .github/workflows/main.yaml +20 -0
  2. app.py +1 -1
.github/workflows/main.yaml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+ - name: Push to hub
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: git push https://ashutoshchoudhari:$HF_TOKEN@huggingface.co/spaces/ashutoshchoudhari/Search-Engine-LLM-app main
app.py CHANGED
@@ -101,7 +101,7 @@ if "memory" not in st.session_state:
101
  st.session_state.memory = ConversationBufferWindowMemory(k=5, memory_key="chat_history", return_messages=True)
102
  memory = st.session_state.memory
103
 
104
- if prompt:= st.chat_input(placeholder = "Write your prompt here...."):
105
  st.session_state.messages.append({
106
  "role":"user",
107
  "content": prompt
 
101
  st.session_state.memory = ConversationBufferWindowMemory(k=5, memory_key="chat_history", return_messages=True)
102
  memory = st.session_state.memory
103
 
104
+ if prompt:= st.chat_input(placeholder = "Write your query here...."):
105
  st.session_state.messages.append({
106
  "role":"user",
107
  "content": prompt