anumaurya114exp commited on
Commit
21de1e6
·
1 Parent(s): ceec937
Files changed (1) hide show
  1. app.py +0 -23
app.py CHANGED
@@ -261,10 +261,7 @@ def onResetToDefaultSelection():
261
 
262
  return tableBoxes
263
 
264
- import gradio as gr
265
- import os
266
 
267
- # Define your function
268
  def getAllLogFilesUrls():
269
  global logs_dir
270
  # Save processed data to temporary file
@@ -274,26 +271,6 @@ def getAllLogFilesUrls():
274
  return downloadableFiles
275
 
276
 
277
-
278
- # Download function
279
- def handle_button_click(download_url):
280
- # Open the download URL in a new browser tab
281
- js = f"window.open('{download_url}', '_blank')"
282
- gr.run_js(js)
283
-
284
- # Connect button click to download
285
- download_button.click(handle_button_click, inputs=process_data, outputs=[0])
286
-
287
- # Build the Gradio interface
288
- with gr.Blocks() as interface:
289
-
290
-
291
- # Launch the interface
292
- interface.launch()
293
-
294
-
295
-
296
-
297
  with gr.Blocks() as demo:
298
  # screen 1 : Chatbot for question answering to generate sql query from user input in english
299
  with gr.Tab("Query Helper"):
 
261
 
262
  return tableBoxes
263
 
 
 
264
 
 
265
  def getAllLogFilesUrls():
266
  global logs_dir
267
  # Save processed data to temporary file
 
271
  return downloadableFiles
272
 
273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  with gr.Blocks() as demo:
275
  # screen 1 : Chatbot for question answering to generate sql query from user input in english
276
  with gr.Tab("Query Helper"):