Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ from cryptography.fernet import Fernet
|
|
9 |
|
10 |
# Générer une clé de chiffrement
|
11 |
L_ogin = os.getenv('login')
|
|
|
12 |
print ("#"*50)
|
13 |
print(L_ogin)
|
14 |
|
@@ -38,7 +39,7 @@ def respond(
|
|
38 |
temperature,
|
39 |
top_p,
|
40 |
):
|
41 |
-
client = InferenceClient(token=L_ogin,timeout = 30, model=
|
42 |
messages = [{"role": "system", "content": system_message}]
|
43 |
|
44 |
for val in history:
|
|
|
9 |
|
10 |
# Générer une clé de chiffrement
|
11 |
L_ogin = os.getenv('login')
|
12 |
+
modelURL = os.getenv('modelURL')
|
13 |
print ("#"*50)
|
14 |
print(L_ogin)
|
15 |
|
|
|
39 |
temperature,
|
40 |
top_p,
|
41 |
):
|
42 |
+
client = InferenceClient(token=L_ogin,timeout = 30, model=modelURL)
|
43 |
messages = [{"role": "system", "content": system_message}]
|
44 |
|
45 |
for val in history:
|