File size: 421 Bytes
b7c38f0
3cbd59f
b7c38f0
 
 
 
 
dd45921
b7c38f0
5249861
 
 
72e8145
5249861
72e8145
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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:
    itisscript, response = nand.process_query(query, para)
    if not itisscript:
        themod = textwrap.fill(response, width=77)
        st.text("W:"+themod)
    else:
        st.text("S:"+response)