farouk04 commited on
Commit
bb7985c
·
verified ·
1 Parent(s): 8e9022c

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +5 -9
  3. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 📱
4
  colorFrom: blue
5
  colorTo: red
6
  sdk: gradio
7
- sdk_version: 4.44.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
4
  colorFrom: blue
5
  colorTo: red
6
  sdk: gradio
7
+ sdk_version: 6.12.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
app.py CHANGED
@@ -252,14 +252,7 @@ all trained on the [UCI SMS Spam Collection](https://archive.ics.uci.edu/ml/data
252
  nb_f1=f"{METRICS['Multinomial NB']['f1']:.4f}",
253
  )
254
 
255
- with gr.Blocks(
256
- title="SMS Spam Detector",
257
- theme=gr.themes.Soft(),
258
- css="""
259
- .result-box { font-size: 1.1em; font-weight: bold; text-align: center; }
260
- footer { display: none !important; }
261
- """,
262
- ) as demo:
263
 
264
  gr.Markdown(
265
  """
@@ -329,4 +322,7 @@ with gr.Blocks(
329
 
330
 
331
  if __name__ == "__main__":
332
- demo.launch()
 
 
 
 
252
  nb_f1=f"{METRICS['Multinomial NB']['f1']:.4f}",
253
  )
254
 
255
+ with gr.Blocks(title="SMS Spam Detector") as demo:
 
 
 
 
 
 
 
256
 
257
  gr.Markdown(
258
  """
 
322
 
323
 
324
  if __name__ == "__main__":
325
+ demo.launch(
326
+ theme=gr.themes.Soft(),
327
+ css=".result-box { font-size: 1.1em; font-weight: bold; text-align: center; }",
328
+ )
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio>=4.44.0
2
  pandas>=2.0.0
3
  scikit-learn>=1.4.0
4
  xgboost>=2.0.0
 
1
+ gradio==6.12.0
2
  pandas>=2.0.0
3
  scikit-learn>=1.4.0
4
  xgboost>=2.0.0