Spaces:
Runtime error
Runtime error
Commit
·
ab9f16b
1
Parent(s):
9ad7eb4
feature: update output
Browse files
app.py
CHANGED
@@ -58,8 +58,8 @@ def main(
|
|
58 |
with gr.Blocks() as demo:
|
59 |
gr.Markdown(title)
|
60 |
gr.Markdown(description)
|
61 |
-
with gr.Row(equal_height=
|
62 |
-
with gr.Column(variant="
|
63 |
interface_input = gr.Textbox(
|
64 |
lines=3,
|
65 |
label="Instruction",
|
@@ -80,9 +80,12 @@ def main(
|
|
80 |
],
|
81 |
inputs = [interface_input]
|
82 |
)
|
83 |
-
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
86 |
submit.click(
|
87 |
evaluate_magicoder,
|
88 |
inputs=[interface_input, temperature, max_new_tokens],
|
|
|
58 |
with gr.Blocks() as demo:
|
59 |
gr.Markdown(title)
|
60 |
gr.Markdown(description)
|
61 |
+
with gr.Row(equal_height=True):
|
62 |
+
with gr.Column(variant="default"):
|
63 |
interface_input = gr.Textbox(
|
64 |
lines=3,
|
65 |
label="Instruction",
|
|
|
80 |
],
|
81 |
inputs = [interface_input]
|
82 |
)
|
83 |
+
with gr.Blocks() as output_blocks:
|
84 |
+
with gr.Column(variant="default"):
|
85 |
+
with gr.Tab("Output"):
|
86 |
+
output = gr.Markdown(
|
87 |
+
label="Output",
|
88 |
+
)
|
89 |
submit.click(
|
90 |
evaluate_magicoder,
|
91 |
inputs=[interface_input, temperature, max_new_tokens],
|