kwabs22 commited on
Commit
c903cf3
1 Parent(s): bbb68cf

Blocks needs queue

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -84,12 +84,13 @@ with gr.Blocks() as iface:
84
  description="No Message History for now - Enter your message and get a response.",
85
  flagging_dir="/usr/src/app/flagged",
86
  )
87
- gr.HTML()
88
- MainOutput = gr.TextArea()
89
- CustomButtonInput = gr.TextArea()
90
- CustomButtonClassDiagram = gr.Button(CustomPrompts[0])
91
- CustomButtonPydotcode = gr.Button(CustomPrompts[1])
92
- CustomButtonClassDiagram .click(custom_generate_response, inputs=[CustomButtonInput], outputs=MainOutput)
93
- CustomButtonPydotcode.click(custom_generate_response, inputs=[CustomButtonInput], outputs=MainOutput)
 
94
 
95
  iface.queue().launch(server_name="0.0.0.0", share=True)
 
84
  description="No Message History for now - Enter your message and get a response.",
85
  flagging_dir="/usr/src/app/flagged",
86
  )
87
+ with gr.Group():
88
+ gr.HTML("Test for wrapping generator")
89
+ MainOutput = gr.TextArea()
90
+ CustomButtonInput = gr.TextArea()
91
+ CustomButtonClassDiagram = gr.Button(CustomPrompts[0])
92
+ CustomButtonPydotcode = gr.Button(CustomPrompts[1])
93
+ CustomButtonClassDiagram .click(custom_generate_response, inputs=[CustomButtonInput], outputs=MainOutput)
94
+ CustomButtonPydotcode.click(custom_generate_response, inputs=[CustomButtonInput], outputs=MainOutput)
95
 
96
  iface.queue().launch(server_name="0.0.0.0", share=True)