Ashrafb commited on
Commit
c62ca2f
1 Parent(s): 163dc94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -7,11 +7,12 @@ import time
7
  from queue import Queue
8
  from threading import Thread
9
 
10
- API_URL = "https://api-inference.huggingface.co/models/facebook/mbart-large-50-many-to-one-mmt"
11
-
12
  API_TOKEN = os.environ.get("HF_READ_TOKEN")
 
13
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
14
- text_gen = gr.Interface.load(API_URL)
 
15
  proc1 = gr.Interface.load("models/openskyml/midjourney-v4-xl")
16
 
17
  # ... (remaining code)
 
7
  from queue import Queue
8
  from threading import Thread
9
 
10
+ API_URL = "models/facebook/mbart-large-50-many-to-one-mmt"
 
11
  API_TOKEN = os.environ.get("HF_READ_TOKEN")
12
+
13
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
14
+ text_gen = gr.Interface.load(API_URL, headers=headers)
15
+
16
  proc1 = gr.Interface.load("models/openskyml/midjourney-v4-xl")
17
 
18
  # ... (remaining code)