gofeco commited on
Commit
5249861
1 Parent(s): f8f4068

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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 = textwrap.fill(nand.process_query(query, para), width=77)
11
- st.text(response)
 
 
 
 
 
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)