Roman190928 commited on
Commit
29a79af
·
verified ·
1 Parent(s): 322bb3c

Update app.py

Browse files

Use correct api. (https://router.huggingface.co)

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,10 +33,10 @@ class XylariaChat:
33
  token=self.hf_token
34
  )
35
 
36
- self.image_api_url = "https://api-inference.huggingface.co/models/Salesforce/blip-image-captioning-large"
37
  self.image_api_headers = {"Authorization": f"Bearer {self.hf_token}"}
38
 
39
- self.image_gen_api_url = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
40
 
41
  self.conversation_history = []
42
  self.persistent_memory = []
 
33
  token=self.hf_token
34
  )
35
 
36
+ self.image_api_url = "https://router.huggingface.co/models/Salesforce/blip-image-captioning-large"
37
  self.image_api_headers = {"Authorization": f"Bearer {self.hf_token}"}
38
 
39
+ self.image_gen_api_url = "https://router.huggingface.co/models/black-forest-labs/FLUX.1-schnell"
40
 
41
  self.conversation_history = []
42
  self.persistent_memory = []