lunadebruyne commited on
Commit
ebe4bfb
·
1 Parent(s): 5907edf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,5 +1,8 @@
1
  import gradio as gr
2
 
 
 
 
3
  def what_happened(text, file_object, option_list):
4
  if file_object:
5
  output = "You uploaded a file."
@@ -42,6 +45,7 @@ iface0 = gr.Interface(
42
 
43
  iface1 = gr.Interface(
44
  fn=what_happened1,
 
45
  inputs = gr.Textbox(
46
  label= "Enter a sentence",
47
  lines=1,
@@ -50,6 +54,7 @@ iface1 = gr.Interface(
50
 
51
  iface2 = gr.Interface(
52
  fn=what_happened2,
 
53
  inputs=[
54
  gr.File(
55
  label="Upload a dataset"),
 
1
  import gradio as gr
2
 
3
+ description1 = "<h3>Demo EmotioNL</h3>\nThis demo allows you to analyse the emotion in a sentence."
4
+ description2 = "<h3>Demo EmotioNL</h3>\nThis demo allows you to analyse the emotions in a dataset."
5
+
6
  def what_happened(text, file_object, option_list):
7
  if file_object:
8
  output = "You uploaded a file."
 
45
 
46
  iface1 = gr.Interface(
47
  fn=what_happened1,
48
+ description = description1,
49
  inputs = gr.Textbox(
50
  label= "Enter a sentence",
51
  lines=1,
 
54
 
55
  iface2 = gr.Interface(
56
  fn=what_happened2,
57
+ description = description2,
58
  inputs=[
59
  gr.File(
60
  label="Upload a dataset"),