Spaces:
Running
Running
broadfield
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ import re
|
|
14 |
import os
|
15 |
loc_folder="chat_history"
|
16 |
loc_file="chat_json"
|
17 |
-
|
18 |
clients = [
|
19 |
{'type':'image','name':'black-forest-labs/FLUX.1-dev','rank':'op','max_tokens':16384,'schema':{'bos':'<|im_start|>','eos':'<|im_end|>'}},
|
20 |
{'type':'text','name':'deepseek-ai/DeepSeek-V2.5-1210','rank':'op','max_tokens':16384,'schema':{'bos':'<|im_start|>','eos':'<|im_end|>'}},
|
@@ -133,7 +133,7 @@ def generate(prompt,history,mod=2,tok=4000,seed=1,role="ASSISTANT",data=None):
|
|
133 |
def build_space(repo_name,file_name,file_content,access_token=""):
|
134 |
try:
|
135 |
#access_token=""
|
136 |
-
client
|
137 |
# Create a new Space
|
138 |
response = client.create_repo(repo_name)
|
139 |
space_info = response.json()
|
|
|
14 |
import os
|
15 |
loc_folder="chat_history"
|
16 |
loc_file="chat_json"
|
17 |
+
|
18 |
clients = [
|
19 |
{'type':'image','name':'black-forest-labs/FLUX.1-dev','rank':'op','max_tokens':16384,'schema':{'bos':'<|im_start|>','eos':'<|im_end|>'}},
|
20 |
{'type':'text','name':'deepseek-ai/DeepSeek-V2.5-1210','rank':'op','max_tokens':16384,'schema':{'bos':'<|im_start|>','eos':'<|im_end|>'}},
|
|
|
133 |
def build_space(repo_name,file_name,file_content,access_token=""):
|
134 |
try:
|
135 |
#access_token=""
|
136 |
+
client=HfApi(access_token)
|
137 |
# Create a new Space
|
138 |
response = client.create_repo(repo_name)
|
139 |
space_info = response.json()
|