Spaces:
Sleeping
Sleeping
Update app.py
Browse files87 unmodified lines88899091929394959697989910010187 unmodified linesprint("Most likely ISCO code is {} and probability is {}".format(decoded_labels,highest_probabilities))# Create descriptive text for the outputresult_text = "Most likely ISCO code is {} and probability is {:.2f}".format(decoded_labels[0], highest_probabilities[0])print(result_text)iface = gr.Interface(fn=launch,inputs=gr.Textbox(lines=2, placeholder="Enter job title and description here..."),outputs= gr.Textbox(lines=2))iface.launch()87 unmodified lines88899091929394959697989910010110287 unmodified linesprint("Most likely ISCO code is {} and probability is {}".format(decoded_labels,highest_probabilities))# Create descriptive text for the output#result_text = "Most likely ISCO code is {} and probability is {:.2f}".format(decoded_labels[0], highest_probabilities[0])result_text = f"ISCO: {decoded_labels[0]}\nProbability: {highest_probabilities[0]:.2f}"print(result_text)iface = gr.Interface(fn=launch,inputs=gr.Textbox(lines=2, placeholder="Enter job title and description here..."),outputs=gr.Textbox(lines=2, placeholder="ISCO: <result>\nProbability: <result>"))iface.launch()
app.py+3-2