Spaces:
Build error
Build error
Commit
•
8028287
1
Parent(s):
8cb5d67
Update app.py
Browse files
app.py
CHANGED
@@ -18,18 +18,15 @@ from transformers import (
|
|
18 |
)
|
19 |
import json
|
20 |
import os
|
21 |
-
|
22 |
-
before_prompt,
|
23 |
-
prompt_to_generation,
|
24 |
-
after_generation,
|
25 |
-
js_save,
|
26 |
-
js_load_script,
|
27 |
-
)
|
28 |
from spaces_info import description, examples, initial_prompt_value
|
29 |
|
30 |
API_URL = os.getenv("API_URL")
|
31 |
HF_API_TOKEN = os.getenv("HF_API_TOKEN")
|
32 |
|
|
|
|
|
|
|
33 |
|
34 |
def query(payload):
|
35 |
print(payload)
|
|
|
18 |
)
|
19 |
import json
|
20 |
import os
|
21 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
from spaces_info import description, examples, initial_prompt_value
|
23 |
|
24 |
API_URL = os.getenv("API_URL")
|
25 |
HF_API_TOKEN = os.getenv("HF_API_TOKEN")
|
26 |
|
27 |
+
print(API_URL)
|
28 |
+
print(HF_API_TOKEN)
|
29 |
+
|
30 |
|
31 |
def query(payload):
|
32 |
print(payload)
|