tanveeshsingh commited on
Commit
0ce1955
1 Parent(s): 379e15d

Add Collinear SDK

Browse files
Files changed (2) hide show
  1. app.py +1 -11
  2. requirements.txt +2 -1
app.py CHANGED
@@ -1,15 +1,5 @@
1
  import gradio as gr
2
- # from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
3
- # from jinja2 import Template
4
- # import torch
5
- # import json
6
-
7
- # # load the judge
8
- # device = "cuda:0"
9
- # model_name = "collinear-ai/collinear-reliability-judge-v8-sauber"
10
- # model_pipeline = pipeline(task="text-classification", model=model_name, device=device)
11
-
12
- # templates
13
  conv_template = Template(
14
  """
15
  # Context:
 
1
  import gradio as gr
2
+ from collinear import Collinear
 
 
 
 
 
 
 
 
 
 
3
  conv_template = Template(
4
  """
5
  # Context:
requirements.txt CHANGED
@@ -2,4 +2,5 @@ jinja2
2
  sentencepiece
3
  transformers
4
  gradio
5
- torch
 
 
2
  sentencepiece
3
  transformers
4
  gradio
5
+ torch
6
+ collinear