peter2000 commited on
Commit
68a3c1d
1 Parent(s): 2c7a50d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  pipe = pipeline("text-classification", model="jonas/sdg_classifier_osdg")
5
- pipe2 = pipeline("text-classification", model="peter2000/xlm-roberta-base-finetuned-osdg")
6
 
7
  sdg_dict = {
8
  '1':"SDG 1: End poverty in all its forms everywhere",
@@ -36,8 +35,6 @@ gradio_ui = gr.Interface(
36
  outputs=[
37
  gr.outputs.Textbox(label="SDG Label"),
38
  gr.outputs.Textbox(label="Certainty"),
39
- gr.outputs.Textbox(label="SDG Label"),
40
- gr.outputs.Textbox(label="Certainty")
41
  ],
42
  examples=[
43
  ["The Paris Agreement, adopted in 2015, aims to strengthen the global response to the threat of climate change by keeping a global temperature rise this century well below 2 degrees Celsius above pre-industrial levels. The agreement also aims to strengthen the ability of countries to deal with the impacts of climate change, through appropriate financial flows, a new technology framework and an enhanced capacity building framework."],
 
2
  from transformers import pipeline
3
 
4
  pipe = pipeline("text-classification", model="jonas/sdg_classifier_osdg")
 
5
 
6
  sdg_dict = {
7
  '1':"SDG 1: End poverty in all its forms everywhere",
 
35
  outputs=[
36
  gr.outputs.Textbox(label="SDG Label"),
37
  gr.outputs.Textbox(label="Certainty"),
 
 
38
  ],
39
  examples=[
40
  ["The Paris Agreement, adopted in 2015, aims to strengthen the global response to the threat of climate change by keeping a global temperature rise this century well below 2 degrees Celsius above pre-industrial levels. The agreement also aims to strengthen the ability of countries to deal with the impacts of climate change, through appropriate financial flows, a new technology framework and an enhanced capacity building framework."],