zealous79A commited on
Commit
16d482d
·
verified ·
1 Parent(s): 84c95af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -65,9 +65,6 @@ demo = gr.ChatInterface(
65
  )
66
  """
67
 
68
- with gr.Blocks() as demo:
69
- show_components()
70
-
71
  def show_components():
72
  return [
73
  gr.Textbox(visible=True, label="Query"),
@@ -78,6 +75,13 @@ def load_new_dataset():
78
  gr.Info(message="Loading dataset...")
79
  ds = load_dataset("fka/awesome-chatgpt-prompts", split="train")
80
 
 
 
 
 
 
 
 
81
  if __name__ == "__main__":
82
  load_new_dataset()
83
  demo.launch()
 
65
  )
66
  """
67
 
 
 
 
68
  def show_components():
69
  return [
70
  gr.Textbox(visible=True, label="Query"),
 
75
  gr.Info(message="Loading dataset...")
76
  ds = load_dataset("fka/awesome-chatgpt-prompts", split="train")
77
 
78
+ #----------------------
79
+
80
+ with gr.Blocks() as demo:
81
+ show_components()
82
+
83
+ #----------------------
84
+
85
  if __name__ == "__main__":
86
  load_new_dataset()
87
  demo.launch()