Spaces:
Running
Running
Rohit Rajpoot
commited on
Commit
·
7536c5d
1
Parent(s):
3e19cc5
Deploy fixed app.py with correct imports
Browse files
app.py
CHANGED
@@ -1,16 +1,18 @@
|
|
1 |
import streamlit as st
|
2 |
-
from assist.chat import chat as
|
|
|
3 |
|
4 |
st.title("RepoSage Chatbot Demo")
|
5 |
|
6 |
-
|
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 |
-
|
|
|
13 |
|
14 |
with col2:
|
15 |
if st.button("Ask Bayesian RepoSage"):
|
16 |
-
|
|
|
|
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)
|