Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -184,15 +184,15 @@ def completion():
|
|
184 |
|
185 |
|
186 |
code_str = """
|
187 |
-
|
188 |
-
'prompt': {all_input},
|
189 |
-
'model': {model},
|
190 |
'max_tokens': {max_tokens},
|
191 |
'temperature': {temperature},
|
192 |
'top_p': {top_p},
|
193 |
'top_k': {top_k},
|
194 |
'n': {n},
|
195 |
-
"stop": {stop_tokens},
|
196 |
}}
|
197 |
""".format(all_input=all_input,model=model,max_tokens=max_tokens,temperature=temperature, top_p=top_p,top_k=top_k,n=n,stop_tokens=stop_tokens)
|
198 |
st.code(code_str)
|
|
|
184 |
|
185 |
|
186 |
code_str = """
|
187 |
+
post_json = {{
|
188 |
+
'prompt': '{all_input}',
|
189 |
+
'model': '{model}',
|
190 |
'max_tokens': {max_tokens},
|
191 |
'temperature': {temperature},
|
192 |
'top_p': {top_p},
|
193 |
'top_k': {top_k},
|
194 |
'n': {n},
|
195 |
+
"stop": '{stop_tokens}',
|
196 |
}}
|
197 |
""".format(all_input=all_input,model=model,max_tokens=max_tokens,temperature=temperature, top_p=top_p,top_k=top_k,n=n,stop_tokens=stop_tokens)
|
198 |
st.code(code_str)
|