john commited on
Commit
8225a4d
·
1 Parent(s): 730ad9d
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import gradio as gr
2
  from transformers import pipeline
3
  from transformers import AutoTokenizer
@@ -23,7 +25,7 @@ from datasets import load_metric
23
  from transformers import Trainer
24
  import numpy as np
25
 
26
- training_args = TrainingArguments("test-trainer", evaluation_strategy="epoch")# ѵ����Ҫ�IJ�����Ĭ�ϵ�
27
  model = AutoModelForSequenceClassification.from_pretrained(checkpoint, num_labels=2)
28
 
29
  def compute_metrics(eval_preds):
 
1
+ # -*- coding: utf-8 -*-
2
+
3
  import gradio as gr
4
  from transformers import pipeline
5
  from transformers import AutoTokenizer
 
25
  from transformers import Trainer
26
  import numpy as np
27
 
28
+ training_args = TrainingArguments("test-trainer", evaluation_strategy="epoch")
29
  model = AutoModelForSequenceClassification.from_pretrained(checkpoint, num_labels=2)
30
 
31
  def compute_metrics(eval_preds):