Spaces:
Runtime error
Runtime error
model descriptions and examples draft01
Browse files
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()
|