OnePoseviaGen / app.py
3v324v23's picture
Update urls
4841b69
raw
history blame contribute delete
926 Bytes
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)
'''
html = '''
<!DOCTYPE html>
<html>
<body>
<iframe id="myIframe" width="100%" height="1500" frameborder="0"></iframe>
</body>
</html>
'''
script = '''
function createGradio() {
const urls = [
"https://14232acbfb44bb9506.gradio.live",
"https://f2aab37743d2316f15.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()