zmbfeng commited on
Commit
0845e0e
·
verified ·
1 Parent(s): 1d40f83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -215,9 +215,9 @@ interface2 = gr.Interface(fn=create_response_untethered,
215
  description="untethered fine tuning",
216
  examples=[
217
  ["What is death?",5,0.2,1.5,0.9,True], # The first example
218
- ["One of the best teachers in all of life turns out to be what?",5,0.2,1.5,0.9,True], # The second example
219
- ["what is your most meaningful relationship?",5,0.2,1.5,0.9,True], # The third example
220
- ["What actually gives life meaning?",5,0.2,1.5,0.9,True]
221
  ],
222
  inputs=[
223
  gr.Textbox(label="input text here", lines=3),
@@ -248,7 +248,7 @@ interface2 = gr.Interface(fn=create_response_untethered,
248
  "If is set to True, the generate function will use stochastic sampling, which means that it will randomly" +
249
  " select a word from the probability distribution at each step. This results in a more diverse and creative" +
250
  " output, but it might also introduce errors and inconsistencies ", value=True),
251
- gr.Textbox(label="model", lines=3, value="untethered_model_name")
252
  #,visible=False
253
  ], outputs=[gr.Textbox(label="output response", lines=30)])
254
 
 
215
  description="untethered fine tuning",
216
  examples=[
217
  ["What is death?",5,0.2,1.5,0.9,True], # The first example
218
+ ["One of the best teachers in all of life turns out to be what?",5,0.2,1.5,0.9,True,"untethered_model_name"], # The second example
219
+ ["what is your most meaningful relationship?",5,0.2,1.5,0.9,True,"untethered_model_name"], # The third example
220
+ ["What actually gives life meaning?",5,0.2,1.5,0.9,True,"untethered_model_name"]
221
  ],
222
  inputs=[
223
  gr.Textbox(label="input text here", lines=3),
 
248
  "If is set to True, the generate function will use stochastic sampling, which means that it will randomly" +
249
  " select a word from the probability distribution at each step. This results in a more diverse and creative" +
250
  " output, but it might also introduce errors and inconsistencies ", value=True),
251
+ gr.Textbox(label="model", lines=3, value="untethered_model_name",visible=False)
252
  #,visible=False
253
  ], outputs=[gr.Textbox(label="output response", lines=30)])
254