Spaces:
Runtime error
Runtime error
eliphatfs
commited on
Commit
·
b23a3f1
1
Parent(s):
db4fb82
Fix.
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ try:
|
|
76 |
with tab_cls:
|
77 |
if st.button("Run Classification on LVIS Categories"):
|
78 |
pc = load_data()
|
79 |
-
render_pc(
|
80 |
prog.progress(0.5, "Running Classification")
|
81 |
pred = openshape.pred_lvis_sims(model_g14, pc)
|
82 |
for i, (cat, sim) in zip(range(5), pred.items()):
|
@@ -93,7 +93,7 @@ try:
|
|
93 |
height = st.slider('Height', 128, 512, step=32)
|
94 |
if st.button("Generate"):
|
95 |
pc = load_data()
|
96 |
-
render_pc(
|
97 |
prog.progress(0.49, "Running Generation")
|
98 |
img = openshape.pc_to_image(
|
99 |
model_l14, pc, prompt, noise_scale, width, height, cfg_scale, steps,
|
@@ -106,7 +106,7 @@ try:
|
|
106 |
cond_scale = st.slider('Conditioning Scale', 0.0, 4.0, 1.0)
|
107 |
if st.button("Generate a Caption"):
|
108 |
pc = load_data()
|
109 |
-
render_pc(
|
110 |
prog.progress(0.5, "Running Generation")
|
111 |
cap = openshape.pc_caption(model_b32, pc, cond_scale)
|
112 |
st.text(cap)
|
|
|
76 |
with tab_cls:
|
77 |
if st.button("Run Classification on LVIS Categories"):
|
78 |
pc = load_data()
|
79 |
+
render_pc(pc)
|
80 |
prog.progress(0.5, "Running Classification")
|
81 |
pred = openshape.pred_lvis_sims(model_g14, pc)
|
82 |
for i, (cat, sim) in zip(range(5), pred.items()):
|
|
|
93 |
height = st.slider('Height', 128, 512, step=32)
|
94 |
if st.button("Generate"):
|
95 |
pc = load_data()
|
96 |
+
render_pc(pc)
|
97 |
prog.progress(0.49, "Running Generation")
|
98 |
img = openshape.pc_to_image(
|
99 |
model_l14, pc, prompt, noise_scale, width, height, cfg_scale, steps,
|
|
|
106 |
cond_scale = st.slider('Conditioning Scale', 0.0, 4.0, 1.0)
|
107 |
if st.button("Generate a Caption"):
|
108 |
pc = load_data()
|
109 |
+
render_pc(pc)
|
110 |
prog.progress(0.5, "Running Generation")
|
111 |
cap = openshape.pc_caption(model_b32, pc, cond_scale)
|
112 |
st.text(cap)
|