duclo90 commited on
Commit
bf335e8
·
verified ·
1 Parent(s): 5314ad0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -147,6 +147,10 @@ iface = gr.Interface(
147
  outputs=gr.HTML(label="Analysis Result"),
148
  title="<div id='title'>🔍 AI Text Classifier</div>",
149
  description="<div id='description'>Detect whether text is human-written or AI-generated using advanced NLP<br><span style='font-size: 0.85em; opacity: 0.7; margin-top: 8px; display: inline-block;'>Model by Dergaoui Ayoub</span></div>",
 
 
 
 
150
  theme=gr.themes.Soft(
151
  primary_hue="purple",
152
  secondary_hue="pink",
@@ -154,8 +158,5 @@ iface = gr.Interface(
154
  font=gr.themes.GoogleFont("Inter")
155
  ),
156
  css=custom_css,
157
- flagging_mode="never",
158
- allow_flagging="never"
159
- )
160
-
161
- iface.launch(share=False)
 
147
  outputs=gr.HTML(label="Analysis Result"),
148
  title="<div id='title'>🔍 AI Text Classifier</div>",
149
  description="<div id='description'>Detect whether text is human-written or AI-generated using advanced NLP<br><span style='font-size: 0.85em; opacity: 0.7; margin-top: 8px; display: inline-block;'>Model by Dergaoui Ayoub</span></div>",
150
+ flagging_mode="never"
151
+ )
152
+
153
+ iface.launch(
154
  theme=gr.themes.Soft(
155
  primary_hue="purple",
156
  secondary_hue="pink",
 
158
  font=gr.themes.GoogleFont("Inter")
159
  ),
160
  css=custom_css,
161
+ share=False
162
+ )