devin-ai commited on
Commit
c1c0ae0
·
verified ·
1 Parent(s): 53821ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -54,12 +54,14 @@ def read_sql_query(sql,db):
54
  st.set_page_config("DataChat: Explore Your Database")
55
  st.header("DataChat: Chat With SQL Database")
56
 
57
- table_name = st.text_input("Enter the correct table name")
58
-
59
- question=st.text_input("enter your input/question")
 
60
 
61
  input=f"{question} in {table_name} table"
62
 
 
63
  #save uploaded file
64
  def save_uploaded_file(uploaded_file):
65
  file_path = os.path.join(os.getcwd(), "uploaded.db")
 
54
  st.set_page_config("DataChat: Explore Your Database")
55
  st.header("DataChat: Chat With SQL Database")
56
 
57
+ buff, col, buff2 = st.beta_columns([1,3,1])
58
+
59
+ question=st.text_input("enter your input/question",key="question_input")
60
+ table_name = col.text_input("Enter the correct table name",key="question_input")
61
 
62
  input=f"{question} in {table_name} table"
63
 
64
+
65
  #save uploaded file
66
  def save_uploaded_file(uploaded_file):
67
  file_path = os.path.join(os.getcwd(), "uploaded.db")