Spaces:
Running
on
Zero
Running
on
Zero
File size: 517 Bytes
34d287c |
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 |
import gradio as gr
def greet(name, intensity):
return "Hello, " + name + "!" * int(intensity)
demo = gr.Interface(
fn=greet,
inputs=["text", "slider"],
outputs=["text"],
)
demo.launch(share=True)
import sys
import os
sys.path.append('vggsfm_code/')
from vggsfm_code.hf_demo import demo_fn
from omegaconf import DictConfig, OmegaConf
cfg_file = "vggsfm_code/cfgs/demo.yaml"
cfg = OmegaConf.load(cfg_file)
cfg.SCENE_DIR = "vggsfm_code/examples/cake"
import pdb;pdb.set_trace()
demo_fn(cfg)
|