lunadebruyne commited on
Commit
1ff3aa4
Β·
1 Parent(s): 4c15c1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -108,8 +108,9 @@ iface = gr.TabbedInterface([iface_sentence, iface_dataset], ["Sentence", "Datase
108
  iface.queue().launch()
109
  """
110
 
111
- inference_modelpath = "model/checkpoint-128"
112
 
 
113
  def inference_sentence(text):
114
  tokenizer = AutoTokenizer.from_pretrained(inference_modelpath)
115
  model = AutoModelForSequenceClassification.from_pretrained(inference_modelpath)
@@ -124,7 +125,7 @@ def inference_sentence(text):
124
  def inference_sentence(text):
125
  output = "This sentence will be processed:\n" + text
126
  return output
127
- """
128
 
129
  def unavailable(input_file, input_checks):
130
  output = "As we are currently updating this demo, submitting your own data is unavailable for the moment. However, you can try out the showcase mode 😊"
 
108
  iface.queue().launch()
109
  """
110
 
111
+ #inference_modelpath = "model/checkpoint-128"
112
 
113
+ """
114
  def inference_sentence(text):
115
  tokenizer = AutoTokenizer.from_pretrained(inference_modelpath)
116
  model = AutoModelForSequenceClassification.from_pretrained(inference_modelpath)
 
125
  def inference_sentence(text):
126
  output = "This sentence will be processed:\n" + text
127
  return output
128
+
129
 
130
  def unavailable(input_file, input_checks):
131
  output = "As we are currently updating this demo, submitting your own data is unavailable for the moment. However, you can try out the showcase mode 😊"