Update app.py
Browse files
app.py
CHANGED
@@ -7,11 +7,12 @@ import time
|
|
7 |
from queue import Queue
|
8 |
from threading import Thread
|
9 |
|
10 |
-
API_URL = "
|
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)
|