PraneshJs commited on
Commit
dc82cb7
·
verified ·
1 Parent(s): 52a0c0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ def analyze_text(text):
6
  return "Please enter some text.", ""
7
 
8
  label, score = predict(text)
9
- return f"Prediction: {label}", f"Confidence Score: {score*10:.2f}"
10
 
11
  # Gradio UI
12
  with gr.Blocks(title="txtemo - Emotion & Sentiment Detector") as demo:
 
6
  return "Please enter some text.", ""
7
 
8
  label, score = predict(text)
9
+ return f"Prediction: {label}", f"Confidence Score: {score*100:.2f}"
10
 
11
  # Gradio UI
12
  with gr.Blocks(title="txtemo - Emotion & Sentiment Detector") as demo: