Update app.py
Browse files
app.py
CHANGED
@@ -7,5 +7,9 @@ para = nand.setupDB("en", 10)
|
|
7 |
print("Ready to receive from chat client")
|
8 |
query = st.text_area("Enter a query about ECO:")
|
9 |
if query:
|
10 |
-
response =
|
11 |
-
|
|
|
|
|
|
|
|
|
|
7 |
print("Ready to receive from chat client")
|
8 |
query = st.text_area("Enter a query about ECO:")
|
9 |
if query:
|
10 |
+
itisscript, response = nand.process_query(query, para)
|
11 |
+
if not itisscript:
|
12 |
+
themod = textwrap.fill(response, width=77)
|
13 |
+
else:
|
14 |
+
themod = response
|
15 |
+
st.text(themod)
|