Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import sys
|
|
|
2 |
sys.path.insert(0, '.')
|
3 |
import nand
|
4 |
import streamlit as st
|
@@ -6,5 +7,5 @@ para = nand.setupDB("en", 10)
|
|
6 |
print("Ready to receive from chat client")
|
7 |
query = st.text_area("Enter a query about ECO:")
|
8 |
if query:
|
9 |
-
response = nand.process_query(query, para)
|
10 |
st.text(response)
|
|
|
1 |
import sys
|
2 |
+
import textwrap
|
3 |
sys.path.insert(0, '.')
|
4 |
import nand
|
5 |
import streamlit as st
|
|
|
7 |
print("Ready to receive from chat client")
|
8 |
query = st.text_area("Enter a query about ECO:")
|
9 |
if query:
|
10 |
+
response = textwrap.fill(nand.process_query(query, para), width=100)
|
11 |
st.text(response)
|