mayf commited on
Commit
ecd3e31
·
verified ·
1 Parent(s): 8151df4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -30,12 +30,13 @@ def load_models():
30
  # Story generation model (Qwen3-1.7B)
31
  storyteller = pipeline(
32
  "text-generation",
33
- model="Qwen/Qwen3-1.7B",
34
  device_map="auto",
35
  trust_remote_code=True,
36
  torch_dtype="auto",
37
- max_new_tokens=250,
38
- temperature=0.7,
 
39
  top_p=0.85,
40
  repetition_penalty=1.15,
41
  eos_token_id=151645
 
30
  # Story generation model (Qwen3-1.7B)
31
  storyteller = pipeline(
32
  "text-generation",
33
+ model="Qwen/Qwen3-0.5B",
34
  device_map="auto",
35
  trust_remote_code=True,
36
  torch_dtype="auto",
37
+ max_new_tokens=230,
38
+ temperature=0.8,
39
+ top_k=50,
40
  top_p=0.85,
41
  repetition_penalty=1.15,
42
  eos_token_id=151645