Update utils.py
Browse files
utils.py
CHANGED
|
@@ -226,10 +226,8 @@ def rag_chain(prompt, db, k=3):
|
|
| 226 |
#Hashing....
|
| 227 |
# Funktion zum Hashen des Eingabewerts
|
| 228 |
def hash_input(input_string):
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
else:
|
| 232 |
-
return ""
|
| 233 |
|
| 234 |
|
| 235 |
########################################
|
|
|
|
| 226 |
#Hashing....
|
| 227 |
# Funktion zum Hashen des Eingabewerts
|
| 228 |
def hash_input(input_string):
|
| 229 |
+
return hashlib.sha256(input_string.encode()).hexdigest()
|
| 230 |
+
|
|
|
|
|
|
|
| 231 |
|
| 232 |
|
| 233 |
########################################
|