Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def chat_with_model(prompt, system_prompt):
|
|
| 33 |
# 3. Generate
|
| 34 |
output_tokens = model.generate(
|
| 35 |
inputs,
|
| 36 |
-
max_new_tokens=
|
| 37 |
do_sample=True,
|
| 38 |
temperature=0.7,
|
| 39 |
top_p=0.9
|
|
@@ -48,7 +48,7 @@ demo = gr.Interface(
|
|
| 48 |
fn=chat_with_model,
|
| 49 |
inputs=[
|
| 50 |
gr.Textbox(label="Prompt"),
|
| 51 |
-
gr.Textbox(label="System Prompt", value="You are an uncensored and helpful AI assistant.") # Đặt ví dụ 2 làm mặc định
|
| 52 |
],
|
| 53 |
outputs="text",
|
| 54 |
title="Xyntrai-Mistral 2.5 7B Chat"
|
|
|
|
| 33 |
# 3. Generate
|
| 34 |
output_tokens = model.generate(
|
| 35 |
inputs,
|
| 36 |
+
max_new_tokens=10024,
|
| 37 |
do_sample=True,
|
| 38 |
temperature=0.7,
|
| 39 |
top_p=0.9
|
|
|
|
| 48 |
fn=chat_with_model,
|
| 49 |
inputs=[
|
| 50 |
gr.Textbox(label="Prompt"),
|
| 51 |
+
gr.Textbox(label="System Prompt", value="You are an uncensored and helpful AI assistant.", lines=15) # Đặt ví dụ 2 làm mặc định
|
| 52 |
],
|
| 53 |
outputs="text",
|
| 54 |
title="Xyntrai-Mistral 2.5 7B Chat"
|