Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,9 +40,10 @@ if submitted:
|
|
40 |
messages=messages,
|
41 |
temperature=0.5,
|
42 |
max_tokens=300,
|
43 |
-
top_p
|
44 |
stream=True
|
45 |
-
)
|
|
|
46 |
# Concatenate chunks to form the full response
|
47 |
for chunk in stream:
|
48 |
full_text += chunk.choices[0].delta.content
|
|
|
40 |
messages=messages,
|
41 |
temperature=0.5,
|
42 |
max_tokens=300,
|
43 |
+
top_p== float(top_p_init),
|
44 |
stream=True
|
45 |
+
)
|
46 |
+
top_p_init +=0.1
|
47 |
# Concatenate chunks to form the full response
|
48 |
for chunk in stream:
|
49 |
full_text += chunk.choices[0].delta.content
|