Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
|
|
|
| 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
|