support / app.py
gofeco's picture
Update app.py
3cbd59f verified
raw
history blame
313 Bytes
import sys
import textwrap
sys.path.insert(0, '.')
import nand
import streamlit as st
para = nand.setupDB("en", 10)
print("Ready to receive from chat client")
query = st.text_area("Enter a query about ECO:")
if query:
response = textwrap.fill(nand.process_query(query, para), width=100)
st.text(response)