Update app.py
Browse files
app.py
CHANGED
|
@@ -49,10 +49,10 @@ def chatbot(input_text, temperature, top_p, max_tokens, chat_history=[]):
|
|
| 49 |
iface = gr.Interface(
|
| 50 |
fn=chatbot,
|
| 51 |
inputs=[
|
| 52 |
-
gr.
|
| 53 |
-
gr.
|
| 54 |
-
gr.
|
| 55 |
-
gr.
|
| 56 |
gr.State()
|
| 57 |
],
|
| 58 |
outputs=[
|
|
|
|
| 49 |
iface = gr.Interface(
|
| 50 |
fn=chatbot,
|
| 51 |
inputs=[
|
| 52 |
+
gr.Textbox(lines=2, placeholder="ζ₯ζ¬θͺγ§γ‘γγ»γΌγΈγε
₯εγγ¦γγ γγ"),
|
| 53 |
+
gr.Slider(minimum=0.0, maximum=1.0, step=0.01, default=0.8, label="Temperature"),
|
| 54 |
+
gr.Slider(minimum=0.0, maximum=1.0, step=0.01, default=0.8, label="Top P"),
|
| 55 |
+
gr.Slider(minimum=1, maximum=2048, step=1, default=2048, label="Max Tokens"),
|
| 56 |
gr.State()
|
| 57 |
],
|
| 58 |
outputs=[
|