fixed failing test on main (#1023)

This commit is contained in:
Abubakar Abid 2022-04-19 07:32:40 -07:00 committed by GitHub
parent 9492d5a631
commit 5eb8763bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -55,7 +55,7 @@
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"></script>
<title>Gradio</title>
<script type="module" crossorigin src="./assets/index.ebb592c6.js"></script>
<script type="module" crossorigin src="./assets/index.a2163344.js"></script>
<link rel="stylesheet" href="./assets/index.39bf42f9.css">
</head>

View File

@ -34,8 +34,7 @@ class ImagePreprocessing(unittest.TestCase):
def test_encode_url_to_base64(self):
output_base64 = gr.processing_utils.encode_url_to_base64(
"https://raw.githubusercontent.com/gradio-app/gradio/master/test"
"/test_data/test_image.png"
"https://raw.githubusercontent.com/gradio-app/gradio/main/gradio/test_data/test_image.png"
)
self.assertEqual(output_base64, deepcopy(media_data.BASE64_IMAGE))