Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -353,20 +353,20 @@ with gr.Blocks() as demo:
|
|
353 |
generate_qna_button.click(search_question, inputs=text_input_qna, outputs=text_output_qna)
|
354 |
|
355 |
with gr.Tab("Chat"):
|
356 |
-
gr.
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
|
372 |
demo.launch()
|
|
|
353 |
generate_qna_button.click(search_question, inputs=text_input_qna, outputs=text_output_qna)
|
354 |
|
355 |
with gr.Tab("Chat"):
|
356 |
+
demo = gr.ChatInterface(
|
357 |
+
respond,
|
358 |
+
additional_inputs=[
|
359 |
+
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
360 |
+
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
361 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
362 |
+
gr.Slider(
|
363 |
+
minimum=0.1,
|
364 |
+
maximum=1.0,
|
365 |
+
value=0.95,
|
366 |
+
step=0.05,
|
367 |
+
label="Top-p (nucleus sampling)",
|
368 |
+
),
|
369 |
+
],
|
370 |
+
)
|
371 |
|
372 |
demo.launch()
|