Spaces:
Running
Running
broadfield
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from huggingface_hub import InferenceClient,
|
2 |
#from html2image import Html2Image
|
3 |
import gradio as gr
|
4 |
#import markdown
|
@@ -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|>'}},
|
|
|
1 |
+
from huggingface_hub import InferenceClient, HfApi
|
2 |
#from html2image import Html2Image
|
3 |
import gradio as gr
|
4 |
#import markdown
|
|
|
14 |
import os
|
15 |
loc_folder="chat_history"
|
16 |
loc_file="chat_json"
|
17 |
+
hf_api=HfApi()
|
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|>'}},
|