kwabs22
commited on
Commit
•
c903cf3
1
Parent(s):
bbb68cf
Blocks needs queue
Browse files
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.
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
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)
|