File size: 995 Bytes
7ff376c
 
 
 
 
 
 
 
9d75900
7ff376c
 
 
 
 
 
e323d8a
7ff376c
 
 
 
 
 
 
036526d
 
7ff376c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import gradio as gr
import random

_TITLE = '''
# One View, Many Worlds: Single-Image to 3D Object Meets Generative Domain Randomization for One-Shot 6D Pose Estimation
'''

_DESCRIPTION = '''
## BAAI,BIT&THU&ZJU | [Code](https://github.com/GZWSAMA/One23Pose) | [Project Page](https://gzwsama.github.io/OnePoseviaGen.github.io/)
'''

html = '''
<!DOCTYPE html>
<html>
<body>
    <iframe id="myIframe" width="100%" height="1500" frameborder="0"></iframe>
</body>
</html>
'''

script = '''
function createGradio() {
    const urls = [
        "https://3eb18debec2d55a280.gradio.live",
        "https://91055b506866871bc5.gradio.live"
    ];
    const randomIndex = Math.floor(Math.random() * urls.length);
    document.getElementById("myIframe").src = urls[randomIndex];
}
'''

def one23pose_app():
    
    with gr.Blocks(js=script) as demo:
        gr.Markdown(_TITLE)
        gr.Markdown(_DESCRIPTION)
        gr.HTML(html)
    
    demo.launch()

if __name__ == "__main__":
    one23pose_app()