thushalya commited on
Commit
7e2f91a
1 Parent(s): 0d1161e

add background color

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -417,8 +417,12 @@ def greet(tweet):
417
  return label,str(prediction_value)+"%",str(1-prediction_value)+"%",simple,personality_values
418
 
419
  # demo = gr.Interface(fn=greet, inputs="text", outputs="text")
420
- demo = gr.Interface(theme= gr.themes.Glass(),
421
  title = "Unmasking Hate: An Integrated Approach to Detecting Hate Speech in Social Media",
 
 
 
 
422
  # fn=greet,
423
  fn=greet, inputs=gr.Textbox(placeholder="Enter an input sentence...",label="Input Sentence"),
424
  allow_flagging = "never",
 
417
  return label,str(prediction_value)+"%",str(1-prediction_value)+"%",simple,personality_values
418
 
419
  # demo = gr.Interface(fn=greet, inputs="text", outputs="text")
420
+ demo = gr.Interface(theme= gr.themes.Soft(),
421
  title = "Unmasking Hate: An Integrated Approach to Detecting Hate Speech in Social Media",
422
+ css="""
423
+ .gradio-container {background-color: #caf0f8}
424
+ """,
425
+ # live = True,
426
  # fn=greet,
427
  fn=greet, inputs=gr.Textbox(placeholder="Enter an input sentence...",label="Input Sentence"),
428
  allow_flagging = "never",