share redirect error

This commit is contained in:
Ali Abid 2020-09-25 15:27:13 -07:00
parent ad47ea45a1
commit 9bea27c98b
2 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ function gradio_url(config, url, target, example_file_path) {
return gradio(config, function(data, action) {
return new Promise((resolve, reject) => {
$.ajax({type: "POST",
url: url + action,
url: url + action + "/",
data: JSON.stringify({"data": data}),
dataType: 'json',
contentType: 'application/json; charset=utf-8',

View File

@ -253,7 +253,7 @@ function gradio_url(config, url, target, example_file_path) {
return gradio(config, function(data, action) {
return new Promise((resolve, reject) => {
$.ajax({type: "POST",
url: url + action,
url: url + action + "/",
data: JSON.stringify({"data": data}),
dataType: 'json',
contentType: 'application/json; charset=utf-8',