Spaces:
Running
Running
Pradeep Kumar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -88,14 +88,15 @@ def launch(text_input):
|
|
88 |
print("Most likely ISCO code is {} and probability is {}".format(decoded_labels,highest_probabilities))
|
89 |
|
90 |
# Create descriptive text for the output
|
91 |
-
result_text = "Most likely ISCO code is {} and probability is {:.2f}".format(decoded_labels[0], highest_probabilities[0])
|
|
|
92 |
print(result_text)
|
93 |
|
94 |
|
95 |
iface = gr.Interface(
|
96 |
fn=launch,
|
97 |
inputs=gr.Textbox(lines=2, placeholder="Enter job title and description here..."),
|
98 |
-
outputs=
|
99 |
)
|
100 |
|
101 |
iface.launch()
|
|
|
88 |
print("Most likely ISCO code is {} and probability is {}".format(decoded_labels,highest_probabilities))
|
89 |
|
90 |
# Create descriptive text for the output
|
91 |
+
#result_text = "Most likely ISCO code is {} and probability is {:.2f}".format(decoded_labels[0], highest_probabilities[0])
|
92 |
+
result_text = f"ISCO: {decoded_labels[0]}\nProbability: {highest_probabilities[0]:.2f}"
|
93 |
print(result_text)
|
94 |
|
95 |
|
96 |
iface = gr.Interface(
|
97 |
fn=launch,
|
98 |
inputs=gr.Textbox(lines=2, placeholder="Enter job title and description here..."),
|
99 |
+
outputs=gr.Textbox(lines=2, placeholder="ISCO: <result>\nProbability: <result>")
|
100 |
)
|
101 |
|
102 |
iface.launch()
|