HeyGenLabs commited on
Commit
6312e43
·
verified ·
1 Parent(s): a4c83b9

release notes

Browse files
Files changed (1) hide show
  1. app.py +26 -8
app.py CHANGED
@@ -1,10 +1,28 @@
1
- import subprocess
2
- import os
3
 
4
- PAT = os.getenv("GITHUB_TOKEN")
5
- USER = os.getenv("GITHUB_USER")
6
- SLUG = os.getenv("GITHUB_SLUG")
7
 
8
- os.system(f"git clone https://{USER}:{PAT}@github.com/{SLUG}.git")
9
- os.chdir(SLUG.replace(f"{USER}/", ""))
10
- os.system("python demo.py")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
 
2
 
3
+ def launch_gradio() -> None:
 
 
4
 
5
+ HTML_instructions = """
6
+ <div style="width:80%;margin:auto;text-align:center;">
7
+ <h1 style="font-size:1.6em;">AI Avatar Podcast Generation</h1>
8
+ <div style="font-size:1.3em;">
9
+ We have officially launched podcast generation on our HeyGen Labs page.
10
+ <br>
11
+ Check it out here: <a href="https://labs.heygen.com/video-podcast?sid=hfvp">HeyGen Labs Video Podcast Generation</a>
12
+ <br>
13
+ <br>
14
+ Thank you to all the feedback and testing from the community.
15
+ </div>
16
+ </div>
17
+ """
18
+
19
+ with gr.Blocks() as demo:
20
+ gr.HTML(HTML_instructions)
21
+
22
+
23
+ demo.queue()
24
+ demo.launch(share=True)
25
+
26
+
27
+ if __name__ == "__main__":
28
+ launch_gradio()