Jipski commited on
Commit
af931e5
1 Parent(s): 867c22d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -21,7 +21,7 @@ def infer(input_ids, max_length, temperature, top_k, top_p, num_return_sequences
21
  num_return_sequences=num_return_sequences,
22
  )
23
  return output_sequences
24
- old
25
  default_value = "Jetzt tippen!"
26
  #prompts
27
  st.title("Flos gpt-2")
@@ -40,7 +40,7 @@ else:
40
  output_sequences = infer(input_ids, max_length, temperature, top_k, top_p, num_return_sequences)
41
 
42
  for generated_sequence_idx, generated_sequence in enumerate(output_sequences):
43
- st.write(old)
44
  print(f"=== GENERATED SEQUENCE {generated_sequence_idx + 1} ===")
45
  generated_sequences = generated_sequence.tolist()
46
  # Decode text
@@ -57,3 +57,4 @@ for generated_sequence_idx, generated_sequence in enumerate(output_sequences):
57
 
58
 
59
  st.write(generated_sequences[-1])
 
 
21
  num_return_sequences=num_return_sequences,
22
  )
23
  return output_sequences
24
+
25
  default_value = "Jetzt tippen!"
26
  #prompts
27
  st.title("Flos gpt-2")
 
40
  output_sequences = infer(input_ids, max_length, temperature, top_k, top_p, num_return_sequences)
41
 
42
  for generated_sequence_idx, generated_sequence in enumerate(output_sequences):
43
+
44
  print(f"=== GENERATED SEQUENCE {generated_sequence_idx + 1} ===")
45
  generated_sequences = generated_sequence.tolist()
46
  # Decode text
 
57
 
58
 
59
  st.write(generated_sequences[-1])
60
+ sent = generated_sequences[-1]