AItool commited on
Commit
7d18afe
·
verified ·
1 Parent(s): 1d7f870

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -42,7 +42,8 @@ if submitted:
42
  stream = client.chat.completions.create(
43
  model="TinyLlama/TinyLlama-1.1B-Chat-v1.0",
44
  messages=messages,
45
- temperature=0.5,
 
46
  max_tokens=300,
47
  top_p=top_p_init,
48
  stream=True
 
42
  stream = client.chat.completions.create(
43
  model="TinyLlama/TinyLlama-1.1B-Chat-v1.0",
44
  messages=messages,
45
+ # Generate a random temperature between 0.5 and 1.0
46
+ temperature = random.uniform(0.5, 1.0),
47
  max_tokens=300,
48
  top_p=top_p_init,
49
  stream=True