discover-agent / src /streamlit_app.py
harshith-7's picture
Rename src/main_ui.py to src/streamlit_app.py
16777f1 verified
raw
history blame contribute delete
336 Bytes
import streamlit as st
import requests
st.title('Discover Agent ๐Ÿ”')
query = st.text_input("Search...")
if query:
body = {
'query': query
}
response = requests.post('http://localhost:2911/get_answer', json=body)
answer = response.json()['answer']
st.subheader("Answer:")
st.write(answer)