lewtun HF staff commited on
Commit
aeb451a
1 Parent(s): 9f1411e

Use markdown

Browse files
Files changed (1) hide show
  1. app.py +11 -8
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
- output = gr.Textbox(
114
- interactive=False,
115
- lines=8,
116
- label="Answer",
117
- placeholder="Here will be the answer to your question",
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=1.0,
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.9,
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,