aaronsu commited on
Commit
4d57de8
1 Parent(s): 70a56a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -184,15 +184,15 @@ def completion():
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)
 
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)