Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
cache_dir = '/tmp/hf_cache'
|
| 2 |
os.makedirs(cache_dir, exist_ok=True)
|
| 3 |
os.environ['TRANSFORMERS_CACHE'] = cache_dir
|
|
@@ -8,7 +9,6 @@ import streamlit as st
|
|
| 8 |
from sklearn.metrics.pairwise import cosine_similarity
|
| 9 |
import re
|
| 10 |
from huggingface_hub import InferenceClient
|
| 11 |
-
import os
|
| 12 |
import numpy as np
|
| 13 |
from openai import OpenAI
|
| 14 |
|
|
|
|
| 1 |
+
import os
|
| 2 |
cache_dir = '/tmp/hf_cache'
|
| 3 |
os.makedirs(cache_dir, exist_ok=True)
|
| 4 |
os.environ['TRANSFORMERS_CACHE'] = cache_dir
|
|
|
|
| 9 |
from sklearn.metrics.pairwise import cosine_similarity
|
| 10 |
import re
|
| 11 |
from huggingface_hub import InferenceClient
|
|
|
|
| 12 |
import numpy as np
|
| 13 |
from openai import OpenAI
|
| 14 |
|