thushalya commited on
Commit
6386b69
1 Parent(s): a2faa09

add monochrome theme

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -417,11 +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(
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",outputs=[
 
425
  gr.Label(label="Label"),
426
  gr.Textbox(label="Hate Speech Percentage"),
427
  gr.Textbox(label="Non Hate Speech Percentage"),
 
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.Monochrome(),
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",
425
+ outputs=[
426
  gr.Label(label="Label"),
427
  gr.Textbox(label="Hate Speech Percentage"),
428
  gr.Textbox(label="Non Hate Speech Percentage"),