Spaces:
Running
Running
Update disambiguation/disambiguate.py
Browse files
disambiguation/disambiguate.py
CHANGED
@@ -17,9 +17,9 @@ import re
|
|
17 |
import regex_spatial
|
18 |
import streamlit as st
|
19 |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
20 |
-
|
21 |
BACKEND_URL = "https://SpatialWebAgent-dockerb22.hf.space/api/predict/"
|
22 |
-
API_TOKEN = ''
|
23 |
def call_backend(input_text):
|
24 |
try:
|
25 |
headers = {
|
|
|
17 |
import regex_spatial
|
18 |
import streamlit as st
|
19 |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
20 |
+
import os
|
21 |
BACKEND_URL = "https://SpatialWebAgent-dockerb22.hf.space/api/predict/"
|
22 |
+
API_TOKEN = os.getenv('t22')
|
23 |
def call_backend(input_text):
|
24 |
try:
|
25 |
headers = {
|