Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,11 @@ import gradio as gr
|
|
| 2 |
import urllib
|
| 3 |
|
| 4 |
def display_survey(survey_id):
|
| 5 |
-
base_url = "https://app.surveystack.io/
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
survey_url = "{}{}
|
| 10 |
|
| 11 |
print(survey_url)
|
| 12 |
|
|
|
|
| 2 |
import urllib
|
| 3 |
|
| 4 |
def display_survey(survey_id):
|
| 5 |
+
base_url = "https://app.surveystack.io/groups/"
|
| 6 |
+
group_id = "5e95e368fbbf75000146a006" # Make sure this is the correct group ID
|
| 7 |
+
|
| 8 |
+
# Construct the full URL using urljoin to ensure proper formatting
|
| 9 |
+
survey_url = urljoin(base_url, f"{group_id}/surveys/{survey_id}/submissions/new")
|
| 10 |
|
| 11 |
print(survey_url)
|
| 12 |
|