Spaces:
Sleeping
Sleeping
File size: 336 Bytes
be0aabb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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) |