Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from flask import Flask, render_template, request, jsonify
|
2 |
import os
|
3 |
-
os.environ['TRANSFORMERS_CACHE'] = '/
|
4 |
#os.environ['SENTENCE_TRANSFORMERS_HOME'] = './.cache'
|
5 |
#from transformers import AutoModelForCausalLM, AutoTokenizer
|
6 |
from transformers import T5Tokenizer, T5ForConditionalGeneration
|
|
|
1 |
from flask import Flask, render_template, request, jsonify
|
2 |
import os
|
3 |
+
os.environ['TRANSFORMERS_CACHE'] = '/code/cache/'
|
4 |
#os.environ['SENTENCE_TRANSFORMERS_HOME'] = './.cache'
|
5 |
#from transformers import AutoModelForCausalLM, AutoTokenizer
|
6 |
from transformers import T5Tokenizer, T5ForConditionalGeneration
|