zmbfeng commited on
Commit
e690b8a
·
verified ·
1 Parent(s): 1ee4b73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -25,8 +25,8 @@ def create_response_untethered_paraphrased(input_str,
25
  # print("num_beams=" + str(num_beams))
26
  num_return_sequences=int(num_return_sequences)
27
  print("num_return_sequences" + str(num_return_sequences))
28
- print("top_p" + str(top_p))
29
- top_k=int(top_k)
30
  print("top_k" + str(top_k))
31
  print("repetition_penalty" + str(repetition_penalty))
32
  print("temperature" + str(temperature))
@@ -75,8 +75,8 @@ def create_response_untethered(input_str,
75
  num_return_sequences=int(num_return_sequences)
76
  print("num_return_sequences" + str(num_return_sequences))
77
  print("top_p" + str(top_p))
78
- top_k=int(top_k)
79
- print("top_k" + str(top_k))
80
  print("repetition_penalty" + str(repetition_penalty))
81
  print("temperature" + str(temperature))
82
  print("do_sample" + str(do_sample))
@@ -123,8 +123,8 @@ def create_response_original(input_str,
123
  num_return_sequences=int(num_return_sequences)
124
  print("num_return_sequences" + str(num_return_sequences))
125
  print("top_p" + str(top_p))
126
- top_k=int(top_k)
127
- print("top_k" + str(top_k))
128
  print("repetition_penalty" + str(repetition_penalty))
129
  print("temperature" + str(temperature))
130
  print("do_sample" + str(do_sample))
 
25
  # print("num_beams=" + str(num_beams))
26
  num_return_sequences=int(num_return_sequences)
27
  print("num_return_sequences" + str(num_return_sequences))
28
+ # print("top_p" + str(top_p))
29
+ # top_k=int(top_k)
30
  print("top_k" + str(top_k))
31
  print("repetition_penalty" + str(repetition_penalty))
32
  print("temperature" + str(temperature))
 
75
  num_return_sequences=int(num_return_sequences)
76
  print("num_return_sequences" + str(num_return_sequences))
77
  print("top_p" + str(top_p))
78
+ # top_k=int(top_k)
79
+ # print("top_k" + str(top_k))
80
  print("repetition_penalty" + str(repetition_penalty))
81
  print("temperature" + str(temperature))
82
  print("do_sample" + str(do_sample))
 
123
  num_return_sequences=int(num_return_sequences)
124
  print("num_return_sequences" + str(num_return_sequences))
125
  print("top_p" + str(top_p))
126
+ # top_k=int(top_k)
127
+ # print("top_k" + str(top_k))
128
  print("repetition_penalty" + str(repetition_penalty))
129
  print("temperature" + str(temperature))
130
  print("do_sample" + str(do_sample))