Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ def predict(input_text):
|
|
41 |
difficulty = metadata.get("difficulty", "Unknown")
|
42 |
steps = metadata.get("steps", ["No steps available"])
|
43 |
|
44 |
-
# Create a simple result string
|
45 |
-
steps_text = "\n".join(
|
46 |
simple_result = (
|
47 |
f"Category: {label}\n"
|
48 |
f"Confidence: {score:.2f}\n"
|
|
|
41 |
difficulty = metadata.get("difficulty", "Unknown")
|
42 |
steps = metadata.get("steps", ["No steps available"])
|
43 |
|
44 |
+
# Create a simple result string without dashes
|
45 |
+
steps_text = "\n".join(steps) # No dash or prefix for each step
|
46 |
simple_result = (
|
47 |
f"Category: {label}\n"
|
48 |
f"Confidence: {score:.2f}\n"
|