gokceuludogan commited on
Commit
ccc828d
·
verified ·
1 Parent(s): 6273501

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -64,7 +64,6 @@ with gr.Blocks(theme="abidlabs/Lime") as hate_speech_demo:
64
  choices=[
65
  "turna_tr_hateprint_w0.1_new_",
66
  "berturk_tr_hateprint_w0.1",
67
- "berturk_tr_hateprint_w0.1_b128"
68
  ],
69
  label="Select Model",
70
  value="turna_tr_hateprint"
@@ -88,10 +87,8 @@ with gr.Blocks(theme="abidlabs/Lime") as hate_speech_demo:
88
  with gr.Tab("Hate Speech Categorization"):
89
  gr.Markdown("Categorize the hate speech type in the provided text.")
90
  with gr.Column():
91
- model_choice_category = gr.Radio(
92
- choices=["berturk_tr_hateprint_cat_w0.1_b128", "berturk_tr_hateprint_cat_w0.1"],
93
- label="Select Model"
94
- )
95
  text_input_category = gr.Textbox(label="Input Text")
96
  categorize_button = gr.Button("Categorize")
97
  categorization_output = gr.Textbox(label="Categorization Result")
 
64
  choices=[
65
  "turna_tr_hateprint_w0.1_new_",
66
  "berturk_tr_hateprint_w0.1",
 
67
  ],
68
  label="Select Model",
69
  value="turna_tr_hateprint"
 
87
  with gr.Tab("Hate Speech Categorization"):
88
  gr.Markdown("Categorize the hate speech type in the provided text.")
89
  with gr.Column():
90
+ model_choice_category = "berturk_tr_hateprint_cat_w0.1_b128"
91
+
 
 
92
  text_input_category = gr.Textbox(label="Input Text")
93
  categorize_button = gr.Button("Categorize")
94
  categorization_output = gr.Textbox(label="Categorization Result")