nehalelkaref commited on
Commit
10c73ee
1 Parent(s): bae20b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ from flask import Flask, jsonify, request
2
  from transformers import AutoAdapterModel, AutoTokenizer, TextClassificationPipeline
3
  from huggingface_hub import Repository
4
 
5
- tokenizer = AutoTokenizer.from_pretrained("UBC-NLP/MARBERT", cache_dir="new_cache_dir/)
6
- model = AutoAdapterModel.from_pretrained("UBC-NLP/MARBERT", cache_dir="new_cache_dir/)
7
  sarcasm_adapter = Repository(local_dir="sarcasm_adapter", clone_from="nehalelkaref/sarcasm_adapter")
8
  aoc3_adapter = Repository(local_dir="aoc3_adapter", clone_from="nehalelkaref/aoc3_adapter")
9
  aoc4_adapter = Repository(local_dir="aoc4_adapter", clone_from="nehalelkaref/aoc4_adapter")
 
2
  from transformers import AutoAdapterModel, AutoTokenizer, TextClassificationPipeline
3
  from huggingface_hub import Repository
4
 
5
+ tokenizer = AutoTokenizer.from_pretrained("UBC-NLP/MARBERT", cache_dir="new_cache_dir/")
6
+ model = AutoAdapterModel.from_pretrained("UBC-NLP/MARBERT", cache_dir="new_cache_dir/")
7
  sarcasm_adapter = Repository(local_dir="sarcasm_adapter", clone_from="nehalelkaref/sarcasm_adapter")
8
  aoc3_adapter = Repository(local_dir="aoc3_adapter", clone_from="nehalelkaref/aoc3_adapter")
9
  aoc4_adapter = Repository(local_dir="aoc4_adapter", clone_from="nehalelkaref/aoc4_adapter")