Spaces:
Running
Running
Commit
·
8ca23a5
1
Parent(s):
25bd273
Update app.py
Browse files
app.py
CHANGED
@@ -69,19 +69,21 @@ with gr.Blocks(title="Mistral Playground", css=css) as mistral_playground:
|
|
69 |
with gr.Column(scale=11):
|
70 |
gr.Markdown("Thinktecture Mistral AI Playground", elem_classes="header-text")
|
71 |
|
72 |
-
with gr.Row():
|
73 |
api_key = gr.Textbox(type='password', placeholder='Your Mistral AI API key', lines=1, label="Mistral AI API Key")
|
74 |
model = gr.Radio(
|
75 |
choices=["mistral-tiny", "mistral-small", "mistral-medium"],
|
76 |
value="mistral-tiny",
|
77 |
)
|
78 |
-
with gr.Row():
|
79 |
temperature = gr.Slider(minimum=0.01, maximum=1.0, value=0.2, step=0.1, label="Temperature")
|
80 |
top_p = gr.Slider(minimum=0.01, maximum=1.0, step=0.01, label="Top P", value=0.95)
|
81 |
max_tokens = gr.Slider(minimum=1, maximum=16000, step=500, label="Max Tokens", value=4000)
|
82 |
|
83 |
-
with gr.Row():
|
84 |
-
system = gr.Textbox(lines=
|
|
|
|
|
85 |
gr.ChatInterface(
|
86 |
respond_stream,
|
87 |
additional_inputs=[
|
|
|
69 |
with gr.Column(scale=11):
|
70 |
gr.Markdown("Thinktecture Mistral AI Playground", elem_classes="header-text")
|
71 |
|
72 |
+
with gr.Row(variant='panel'):
|
73 |
api_key = gr.Textbox(type='password', placeholder='Your Mistral AI API key', lines=1, label="Mistral AI API Key")
|
74 |
model = gr.Radio(
|
75 |
choices=["mistral-tiny", "mistral-small", "mistral-medium"],
|
76 |
value="mistral-tiny",
|
77 |
)
|
78 |
+
with gr.Row(variant='panel'):
|
79 |
temperature = gr.Slider(minimum=0.01, maximum=1.0, value=0.2, step=0.1, label="Temperature")
|
80 |
top_p = gr.Slider(minimum=0.01, maximum=1.0, step=0.01, label="Top P", value=0.95)
|
81 |
max_tokens = gr.Slider(minimum=1, maximum=16000, step=500, label="Max Tokens", value=4000)
|
82 |
|
83 |
+
with gr.Row(variant='panel'):
|
84 |
+
system = gr.Textbox(lines=2, label="System Message", value="You are a helpfull AI assistant.")
|
85 |
+
|
86 |
+
with gr.Row(variant='panel'):
|
87 |
gr.ChatInterface(
|
88 |
respond_stream,
|
89 |
additional_inputs=[
|