mrbui1990 commited on
Commit
8551cf4
·
verified ·
1 Parent(s): 0dcf288

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=1024,
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"