Spaces:
Sleeping
Sleeping
Commit
·
646f0fc
1
Parent(s):
426cacf
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
# Import the necessary modules
|
2 |
from flask import Flask, request, render_template
|
3 |
from transformers import pipeline
|
|
|
1 |
+
import os
|
2 |
+
os.environ['TRANSFORMERS_CACHE'] = '/app/cache'
|
3 |
+
|
4 |
# Import the necessary modules
|
5 |
from flask import Flask, request, render_template
|
6 |
from transformers import pipeline
|