raethehacker commited on
Commit
a08bef3
Β·
verified Β·
1 Parent(s): 82d2d9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -31,11 +31,7 @@ def process_inputs(message: str):
31
 
32
  # Display results
33
  yield "##### πŸŽ‰ Emotion Classification Results:"
34
- if "error" in results:
35
- yield f"Error: {results['error']}"
36
- else:
37
- for emotion, score in results.items():
38
- yield f"{emotion}: {score:.2f}"
39
 
40
  finally:
41
  main.disabled = False
 
31
 
32
  # Display results
33
  yield "##### πŸŽ‰ Emotion Classification Results:"
34
+ yeild results
 
 
 
 
35
 
36
  finally:
37
  main.disabled = False