Spaces:
Runtime error
Runtime error
fix
Browse files- app.py +1 -0
- requirements.txt +1 -1
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import os
|
2 |
from friendli import Friendli
|
3 |
|
|
|
4 |
client = Friendli(token=FRIENDLI_TOKEN)
|
5 |
|
6 |
def chat_function(message, history):
|
|
|
1 |
import os
|
2 |
from friendli import Friendli
|
3 |
|
4 |
+
FRIENDLI_TOKEN = os.getenv("FRIENDLI_TOKEN")
|
5 |
client = Friendli(token=FRIENDLI_TOKEN)
|
6 |
|
7 |
def chat_function(message, history):
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
|
2 |
friendli-client==1.3.4
|
|
|
1 |
+
pip==24.0
|
2 |
friendli-client==1.3.4
|