Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def respond(
|
|
| 15 |
temperature,
|
| 16 |
top_p,
|
| 17 |
):
|
| 18 |
-
|
| 19 |
|
| 20 |
messages = [{"role": "system", "content": system_message}]
|
| 21 |
|
|
@@ -57,7 +57,7 @@ demo = gr.ChatInterface(
|
|
| 57 |
gr.Dropdown(
|
| 58 |
["bon", "mcts", "moa"], value="moa", label="Approach", info="Choose the approach"
|
| 59 |
),
|
| 60 |
-
gr.Textbox(value="
|
| 61 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
| 62 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
| 63 |
gr.Slider(
|
|
|
|
| 15 |
temperature,
|
| 16 |
top_p,
|
| 17 |
):
|
| 18 |
+
client = InferenceClient(model)
|
| 19 |
|
| 20 |
messages = [{"role": "system", "content": system_message}]
|
| 21 |
|
|
|
|
| 57 |
gr.Dropdown(
|
| 58 |
["bon", "mcts", "moa"], value="moa", label="Approach", info="Choose the approach"
|
| 59 |
),
|
| 60 |
+
gr.Textbox(value="", label="System message"),
|
| 61 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
| 62 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
| 63 |
gr.Slider(
|