Spaces:
Runtime error
Runtime error
Use markdown
Browse files
app.py
CHANGED
|
@@ -110,12 +110,15 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 110 |
with gr.Row():
|
| 111 |
with gr.Column(scale=3):
|
| 112 |
instruction = gr.Textbox(placeholder="Enter your question here", label="Question")
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
|
|
|
|
|
|
|
|
|
| 119 |
submit = gr.Button("Generate", variant="primary")
|
| 120 |
gr.Examples(examples=examples, inputs=[instruction])
|
| 121 |
|
|
@@ -124,7 +127,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 124 |
label="Temperature",
|
| 125 |
value=1.0,
|
| 126 |
minimum=0.0,
|
| 127 |
-
maximum=
|
| 128 |
step=0.1,
|
| 129 |
interactive=True,
|
| 130 |
info="Higher values produce more diverse outputs",
|
|
@@ -140,7 +143,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 140 |
)
|
| 141 |
top_p = gr.Slider(
|
| 142 |
label="Top-p (nucleus sampling)",
|
| 143 |
-
value=0
|
| 144 |
minimum=0.0,
|
| 145 |
maximum=1,
|
| 146 |
step=0.05,
|
|
|
|
| 110 |
with gr.Row():
|
| 111 |
with gr.Column(scale=3):
|
| 112 |
instruction = gr.Textbox(placeholder="Enter your question here", label="Question")
|
| 113 |
+
with gr.Box():
|
| 114 |
+
gr.Markdown("**Answer**")
|
| 115 |
+
output = gr.Markdown()
|
| 116 |
+
# output = gr.Textbox(
|
| 117 |
+
# interactive=False,
|
| 118 |
+
# lines=8,
|
| 119 |
+
# label="Answer",
|
| 120 |
+
# placeholder="Here will be the answer to your question",
|
| 121 |
+
# )
|
| 122 |
submit = gr.Button("Generate", variant="primary")
|
| 123 |
gr.Examples(examples=examples, inputs=[instruction])
|
| 124 |
|
|
|
|
| 127 |
label="Temperature",
|
| 128 |
value=1.0,
|
| 129 |
minimum=0.0,
|
| 130 |
+
maximum=2.0,
|
| 131 |
step=0.1,
|
| 132 |
interactive=True,
|
| 133 |
info="Higher values produce more diverse outputs",
|
|
|
|
| 143 |
)
|
| 144 |
top_p = gr.Slider(
|
| 145 |
label="Top-p (nucleus sampling)",
|
| 146 |
+
value=1.0,
|
| 147 |
minimum=0.0,
|
| 148 |
maximum=1,
|
| 149 |
step=0.05,
|