Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -232,7 +232,9 @@ def classifyTimeFrame(user_input):
|
|
232 |
for i, label in label_mapping.items():
|
233 |
confidence = probabilities[0][i].item() # Get confidence score for each label
|
234 |
print(f"{label}: {confidence:.4f}")
|
|
|
235 |
print("\n")
|
|
|
236 |
|
237 |
iface = gr.Interface(fn=classifyTimeFrame, inputs="text", outputs="text")
|
238 |
iface.launch(share=True)
|
|
|
232 |
for i, label in label_mapping.items():
|
233 |
confidence = probabilities[0][i].item() # Get confidence score for each label
|
234 |
print(f"{label}: {confidence:.4f}")
|
235 |
+
result += f"{label}: {confidence:.4f}"
|
236 |
print("\n")
|
237 |
+
return result
|
238 |
|
239 |
iface = gr.Interface(fn=classifyTimeFrame, inputs="text", outputs="text")
|
240 |
iface.launch(share=True)
|