expressanalytics commited on
Commit
ea6f8b3
·
1 Parent(s): 9152447

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -209,6 +209,9 @@ def test_Sql(sql):
209
  conn.close()
210
  return pd.DataFrame(df)
211
 
 
 
 
212
  with gr.Blocks() as demo:
213
  with gr.Tab("Query Helper"):
214
  gr.Markdown("""<h1><center> Query Helper</center></h1>""")
@@ -225,4 +228,4 @@ with gr.Blocks() as demo:
225
  clear = gr.ClearButton([text_input, text_output])
226
  text_button.click(test_Sql, inputs=text_input, outputs=text_output)
227
 
228
- demo.launch(share=True)
 
209
  conn.close()
210
  return pd.DataFrame(df)
211
 
212
+ admin = os.getenv("admin")
213
+ paswd = os.getenv("paswd")
214
+
215
  with gr.Blocks() as demo:
216
  with gr.Tab("Query Helper"):
217
  gr.Markdown("""<h1><center> Query Helper</center></h1>""")
 
228
  clear = gr.ClearButton([text_input, text_output])
229
  text_button.click(test_Sql, inputs=text_input, outputs=text_output)
230
 
231
+ demo.launch(share=True, auth=(admin, paswd))