Update index.html
Browse files- index.html +5 -3
index.html
CHANGED
|
@@ -5,7 +5,9 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Test /add_points_and_refresh_fn API</title>
|
| 7 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.js"></script>
|
| 8 |
-
<script
|
|
|
|
|
|
|
| 9 |
</head>
|
| 10 |
<body class="bg-gray-100 p-8">
|
| 11 |
<div class="max-w-2xl mx-auto bg-white rounded-lg shadow-lg p-6">
|
|
@@ -52,7 +54,7 @@
|
|
| 52 |
</div>
|
| 53 |
</div>
|
| 54 |
|
| 55 |
-
<script>
|
| 56 |
function log(message) {
|
| 57 |
const debugInfo = document.getElementById('debug-info');
|
| 58 |
debugInfo.textContent += message + '\n';
|
|
@@ -73,7 +75,7 @@
|
|
| 73 |
|
| 74 |
try {
|
| 75 |
log('Gradio 클라이언트 연결 시도...');
|
| 76 |
-
const
|
| 77 |
log('클라이언트 연결 성공');
|
| 78 |
|
| 79 |
log('API 호출 시작...');
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Test /add_points_and_refresh_fn API</title>
|
| 7 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.js"></script>
|
| 8 |
+
<script type="module">
|
| 9 |
+
import { client } from 'https://cdn.jsdelivr.net/npm/@gradio/client/+esm'
|
| 10 |
+
</script>
|
| 11 |
</head>
|
| 12 |
<body class="bg-gray-100 p-8">
|
| 13 |
<div class="max-w-2xl mx-auto bg-white rounded-lg shadow-lg p-6">
|
|
|
|
| 54 |
</div>
|
| 55 |
</div>
|
| 56 |
|
| 57 |
+
<script type="module">
|
| 58 |
function log(message) {
|
| 59 |
const debugInfo = document.getElementById('debug-info');
|
| 60 |
debugInfo.textContent += message + '\n';
|
|
|
|
| 75 |
|
| 76 |
try {
|
| 77 |
log('Gradio 클라이언트 연결 시도...');
|
| 78 |
+
const gradioClient = await client("ginipick/Dokdo-pay");
|
| 79 |
log('클라이언트 연결 성공');
|
| 80 |
|
| 81 |
log('API 호출 시작...');
|