broadfield commited on
Commit
7791383
·
verified ·
1 Parent(s): 07da7b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -38,8 +38,8 @@ head = """
38
  <meta name="viewport" content="width=device-width" />
39
  <meta name="twitter:card" content="player"/>
40
  <meta name="twitter:site" content=""/>
41
- <meta name="twitter:player" content="https://broadfield-fast-voice-full.hf.space/?pdfurl=https://arxiv.org/pdf/2412.01821"/>
42
- <meta name="twitter:player:stream" content="https://broadfield-fast-voice-full.hf.space/?pdfurl=https://arxiv.org/pdf/2412.01821"/>
43
  <meta name="twitter:player:width" content="100%"/>
44
  <meta name="twitter:player:height" content="100%"/>
45
  <meta property="og:title" content="PDF to Voice"/>
@@ -106,9 +106,9 @@ function () {
106
 
107
  """
108
 
109
- with gr.Blocks(head=head) as app:
110
  a=gr.Audio(streaming=True,autoplay=True)
111
-
112
 
113
  with gr.Accordion("Voice Controls",open=False):
114
  with gr.Row():
 
38
  <meta name="viewport" content="width=device-width" />
39
  <meta name="twitter:card" content="player"/>
40
  <meta name="twitter:site" content=""/>
41
+ <meta name="twitter:player" content="https://broadfield-fast-voice-full.hf.space/?pdfurl=ZZZ"/>
42
+ <meta name="twitter:player:stream" content="https://broadfield-fast-voice-full.hf.space/?pdfurl=ZZZ"/>
43
  <meta name="twitter:player:width" content="100%"/>
44
  <meta name="twitter:player:height" content="100%"/>
45
  <meta property="og:title" content="PDF to Voice"/>
 
106
 
107
  """
108
 
109
+ with gr.Blocks(head=head.replace("ZZZ",t)) as app:
110
  a=gr.Audio(streaming=True,autoplay=True)
111
+
112
 
113
  with gr.Accordion("Voice Controls",open=False):
114
  with gr.Row():