Rohit Rajpoot commited on
Commit
7536c5d
·
1 Parent(s): 3e19cc5

Deploy fixed app.py with correct imports

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -1,16 +1,18 @@
1
  import streamlit as st
2
- from assist.chat import chat as chat_plugin
 
3
 
4
  st.title("RepoSage Chatbot Demo")
5
 
6
- # 1) Change the label to make it obvious we're asking a question
7
- question = st.text_input("Ask RepoSage a question:", "")
8
 
9
  col1, col2 = st.columns(2)
10
  with col1:
11
  if st.button("Ask Embedding RepoSage"):
12
- st.write(embed_chat(question))
 
13
 
14
  with col2:
15
  if st.button("Ask Bayesian RepoSage"):
16
- st.write(bayes_chat(question))
 
 
1
  import streamlit as st
2
+ from assist.chat import chat as embed_chat
3
+ from assist.bayes_chat import bayes_chat
4
 
5
  st.title("RepoSage Chatbot Demo")
6
 
7
+ question = st.text_input("Enter your question below:")
 
8
 
9
  col1, col2 = st.columns(2)
10
  with col1:
11
  if st.button("Ask Embedding RepoSage"):
12
+ answer = embed_chat(question)
13
+ st.write(answer)
14
 
15
  with col2:
16
  if st.button("Ask Bayesian RepoSage"):
17
+ answer = bayes_chat(question)
18
+ st.write(answer)