Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,14 @@ secret_key = st.secrets["secret_key"]
|
|
5 |
wl_key = st.secrets["wl_key"]
|
6 |
|
7 |
def call_api(url, keyword, wl_key, description_narrative):
|
8 |
-
api_url = "https://
|
9 |
|
10 |
payload = {
|
11 |
"url": url,
|
12 |
"keyword": keyword,
|
13 |
"wl_key": wl_key,
|
14 |
-
"description_narrative": description_narrative
|
|
|
15 |
}
|
16 |
|
17 |
headers = {
|
@@ -27,6 +28,7 @@ def call_api(url, keyword, wl_key, description_narrative):
|
|
27 |
url = st.text_input("Enter the URL of the webpage:")
|
28 |
query = st.text_input("Enter the query the content aims at ranking for:")
|
29 |
narrative = st.text_area("Enter the descriptive narrative of the searcher:")
|
|
|
30 |
|
31 |
# Button to execute analysis
|
32 |
if st.button("Analyze"):
|
|
|
5 |
wl_key = st.secrets["wl_key"]
|
6 |
|
7 |
def call_api(url, keyword, wl_key, description_narrative):
|
8 |
+
api_url = "https://query-matching.eastus2.inference.ml.azure.com/score"
|
9 |
|
10 |
payload = {
|
11 |
"url": url,
|
12 |
"keyword": keyword,
|
13 |
"wl_key": wl_key,
|
14 |
+
"description_narrative": description_narrative,
|
15 |
+
"text": text
|
16 |
}
|
17 |
|
18 |
headers = {
|
|
|
28 |
url = st.text_input("Enter the URL of the webpage:")
|
29 |
query = st.text_input("Enter the query the content aims at ranking for:")
|
30 |
narrative = st.text_area("Enter the descriptive narrative of the searcher:")
|
31 |
+
text = st.text_input("Enter, as alternative to the URL the text to be analyzed:")
|
32 |
|
33 |
# Button to execute analysis
|
34 |
if st.button("Analyze"):
|