Spaces:
Running
Running
support for latest Mistral AI models
Browse files
app.py
CHANGED
|
@@ -72,8 +72,8 @@ with gr.Blocks(title="Mistral Playground", css=css) as mistral_playground:
|
|
| 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-
|
| 76 |
-
value="mistral-medium",
|
| 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")
|
|
@@ -95,5 +95,7 @@ with gr.Blocks(title="Mistral Playground", css=css) as mistral_playground:
|
|
| 95 |
system,
|
| 96 |
],
|
| 97 |
)
|
|
|
|
|
|
|
| 98 |
|
| 99 |
mistral_playground.launch()
|
|
|
|
| 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=["open-mistral-7b", "open-mixtral-8x7b", "mistral-small-latest", "mistral-medium-latest", "mistral-large-latest"],
|
| 76 |
+
value="mistral-medium-latest",
|
| 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")
|
|
|
|
| 95 |
system,
|
| 96 |
],
|
| 97 |
)
|
| 98 |
+
with gr.Row():
|
| 99 |
+
gr.HTML(value="<p style='margin-top: 1rem; margin-bottom: 1rem; text-align: center;'>Developed by Marco Frodl, Principal Consultant for Generative AI @ <a href='https://go.mfr.one/tt-en' _target='blank'>Thinktecture AG</a> -- Released 02/26/2024 -- More about me on my <a href='https://go.mfr.one/marcofrodl-en' _target='blank'>profile page</a></p>")
|
| 100 |
|
| 101 |
mistral_playground.launch()
|