CoolFace
Apppublic

harshith-7/discover-agent

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
streamlit_app.py14 linesDownload Raw Back to src
1import streamlit as st
2import requests
3
4st.title('Discover Agent ๐Ÿ”')
5
6query = st.text_input("Search...")
7if query:
8    body = {
9        'query': query
10    }
11    response = requests.post('http://localhost:2911/get_answer', json=body)
12    answer = response.json()['answer']
13    st.subheader("Answer:")
14    st.write(answer)