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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -71,7 +71,7 @@ def create_response_untethered(input_str,
71
  do_sample,
72
  model_name):
73
  print("input_str="+input_str)
74
- print("model_name="+model_name)
75
  # num_beams = int(num_beams)
76
  # print("num_beams=" + str(num_beams))
77
  num_return_sequences=int(num_return_sequences)
@@ -248,7 +248,8 @@ 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(value="untethered_model_name",visible=False)
 
252
  ], outputs=[gr.Textbox(label="output response", lines=30)])
253
 
254
  interface3 = gr.Interface(fn=create_response_untethered_paraphrased,
 
71
  do_sample,
72
  model_name):
73
  print("input_str="+input_str)
74
+ print("model_name="+str(model_name))
75
  # num_beams = int(num_beams)
76
  # print("num_beams=" + str(num_beams))
77
  num_return_sequences=int(num_return_sequences)
 
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
 
255
  interface3 = gr.Interface(fn=create_response_untethered_paraphrased,