haramkoo commited on
Commit
3d553a9
·
1 Parent(s): 32c4505

model descriptions and examples draft01

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def genQuestion(model_choice, context):
39
  for i in range(4):
40
  final_output += [tok.decode(beam, skip_special_tokens=True, clean_up_tokenization_spaces=False) for beam in output][i] + "\n"
41
 
42
- return final_output
43
 
44
  iface = gr.Interface(fn=genQuestion, inputs=[gr.inputs.Dropdown(["interview-question-remake", "interview-length-tagged", "reverse-interview-question"]), "text"], examples=examples, description=descriptions, outputs="text")
45
  iface.launch()
 
39
  for i in range(4):
40
  final_output += [tok.decode(beam, skip_special_tokens=True, clean_up_tokenization_spaces=False) for beam in output][i] + "\n"
41
 
42
+ return final_output , descriptions
43
 
44
  iface = gr.Interface(fn=genQuestion, inputs=[gr.inputs.Dropdown(["interview-question-remake", "interview-length-tagged", "reverse-interview-question"]), "text"], examples=examples, description=descriptions, outputs="text")
45
  iface.launch()