Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,7 @@ full_text = " "
|
|
29 |
top_p_init = 0.7
|
30 |
|
31 |
if submitted:
|
|
|
32 |
messages = [
|
33 |
{"role": "user", "content": text}
|
34 |
]
|
@@ -39,7 +40,7 @@ if submitted:
|
|
39 |
messages=messages,
|
40 |
temperature=0.5,
|
41 |
max_tokens=300,
|
42 |
-
top_p=
|
43 |
stream=True
|
44 |
)+0.21
|
45 |
# Concatenate chunks to form the full response
|
|
|
29 |
top_p_init = 0.7
|
30 |
|
31 |
if submitted:
|
32 |
+
top_p = top_p_init+0.1
|
33 |
messages = [
|
34 |
{"role": "user", "content": text}
|
35 |
]
|
|
|
40 |
messages=messages,
|
41 |
temperature=0.5,
|
42 |
max_tokens=300,
|
43 |
+
top_p=top_p,
|
44 |
stream=True
|
45 |
)+0.21
|
46 |
# Concatenate chunks to form the full response
|