douglasgoodwin commited on
Commit
13054b8
·
verified ·
1 Parent(s): 2dffec1

add customizations

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -1,3 +1,17 @@
1
  import gradio as gr
2
 
3
- gr.load("models/bhadresh-savani/distilbert-base-uncased-emotion").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ # Load the model interface
4
+ interface = gr.load("models/bhadresh-savani/distilbert-base-uncased-emotion")
5
+
6
+ # Apply customizations
7
+ interface.launch(
8
+ title="CMACHINES | Emotion Detection with DistilBERT",
9
+ description="This app uses the DistilBERT model fine-tuned for emotion detection. Enter any text to analyze its emotional content.",
10
+ examples=[
11
+ "I am so happy to see you!",
12
+ "I'm really angry about what happened.",
13
+ "The sunset was absolutely beautiful today.",
14
+ "I'm worried about the upcoming exam.",
15
+ "Fear is the mind-killer. I will face my fear."
16
+ ]
17
+ )