Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,15 +70,12 @@ with gr.Blocks(css=css) as demo:
|
|
70 |
gr.Markdown("## 🇯🇵 Japanese Instructor", elem_id="chat-title")
|
71 |
|
72 |
with gr.Accordion("⚙️ Settings", open=False):
|
73 |
-
system_message = gr.Textbox(
|
74 |
-
label="System message"
|
75 |
-
)
|
76 |
max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Response Length")
|
77 |
temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Response Creativity")
|
78 |
|
79 |
gr.ChatInterface(
|
80 |
respond,
|
81 |
-
additional_inputs=[
|
82 |
)
|
83 |
|
84 |
if __name__ == "__main__":
|
|
|
70 |
gr.Markdown("## 🇯🇵 Japanese Instructor", elem_id="chat-title")
|
71 |
|
72 |
with gr.Accordion("⚙️ Settings", open=False):
|
|
|
|
|
|
|
73 |
max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Response Length")
|
74 |
temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Response Creativity")
|
75 |
|
76 |
gr.ChatInterface(
|
77 |
respond,
|
78 |
+
additional_inputs=[max_tokens, temperature]
|
79 |
)
|
80 |
|
81 |
if __name__ == "__main__":
|