Larvik commited on
Commit
0668caf
·
verified ·
1 Parent(s): bd0fec9

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. hpgs.py +7 -5
app.py CHANGED
@@ -69,7 +69,7 @@ def execute_code(code):
69
  return str(e)
70
 
71
  statement = gr.HTML(homepg[0])
72
- with gr.Blocks(js=jsinj[0]) as demo:
73
  with gr.Row():
74
  for na in nalz:
75
  ymg=na[0]
 
69
  return str(e)
70
 
71
  statement = gr.HTML(homepg[0])
72
+ with gr.Blocks(head=jsinj[0], js=jsinj[1]) as demo:
73
  with gr.Row():
74
  for na in nalz:
75
  ymg=na[0]
hpgs.py CHANGED
@@ -21,12 +21,11 @@ Most of his scripts inherited from Chiba's, including similar joke nicknames in
21
  ]
22
 
23
  jsinj=[
24
- '''
25
- fmain='https://huggingface.co/spaces/Larvik/FF7ogLookup/resolve/main/';
26
-
27
  async function loadipy(durl) {
28
  try {
29
- const response = await fetch(fmain+durl);
30
  if (!response.ok) { throw new Error(`Response status: ${response.status}`);}
31
 
32
  var tx=await response.text();
@@ -49,6 +48,9 @@ function addlnk()
49
  lnkz[i].onclick=lnkclk;
50
  }
51
  }
 
 
 
52
  addlnk();
53
- '''
54
  ]
 
21
  ]
22
 
23
  jsinj=[
24
+ '''<script>
25
+ const fmain = 'https://huggingface.co/spaces/Larvik/FF7ogLookup/resolve/main/';
 
26
  async function loadipy(durl) {
27
  try {
28
+ const response = await fetch(fmain +durl);
29
  if (!response.ok) { throw new Error(`Response status: ${response.status}`);}
30
 
31
  var tx=await response.text();
 
48
  lnkz[i].onclick=lnkclk;
49
  }
50
  }
51
+ </script>''',
52
+ '''function initulink()
53
+ {
54
  addlnk();
55
+ }'''
56
  ]