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