Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,13 @@ from sentence_transformers import SentenceTransformer
|
|
12 |
from sklearn.metrics.pairwise import cosine_similarity
|
13 |
import numpy as np
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
class Config:
|
16 |
MODEL_NAME = "microsoft/DialoGPT-medium"
|
17 |
EMBEDDING_MODEL = "sentence-transformers/all-MiniLM-L6-v2"
|
|
|
12 |
from sklearn.metrics.pairwise import cosine_similarity
|
13 |
import numpy as np
|
14 |
|
15 |
+
# Set up logging configuration
|
16 |
+
logging.basicConfig(
|
17 |
+
level=logging.INFO,
|
18 |
+
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
19 |
+
)
|
20 |
+
logger = logging.getLogger(__name__)
|
21 |
+
|
22 |
class Config:
|
23 |
MODEL_NAME = "microsoft/DialoGPT-medium"
|
24 |
EMBEDDING_MODEL = "sentence-transformers/all-MiniLM-L6-v2"
|