Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def launch(text_input):
|
|
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 |
-
return [decoded_labels[0], highest_probabilities[0]]
|
94 |
|
95 |
|
96 |
iface = gr.Interface(
|
|
|
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 |
+
return result_text #[decoded_labels[0], highest_probabilities[0]]
|
94 |
|
95 |
|
96 |
iface = gr.Interface(
|