bhavika24 commited on
Commit
65995bf
·
verified ·
1 Parent(s): bbb2f85

Upload UI.py

Browse files
Files changed (1) hide show
  1. UI.py +2 -2
UI.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- from engine import process_question
3
  from datetime import datetime
4
 
5
  # =========================
@@ -46,7 +46,7 @@ if user_input:
46
  # Call engine
47
  with st.spinner("Generating SQL..."):
48
  try:
49
- result = process_question(user_input)
50
  except Exception as e:
51
  result = {
52
  "status": "error",
 
1
  import streamlit as st
2
+ from engine import run
3
  from datetime import datetime
4
 
5
  # =========================
 
46
  # Call engine
47
  with st.spinner("Generating SQL..."):
48
  try:
49
+ result = run(user_input)
50
  except Exception as e:
51
  result = {
52
  "status": "error",