bugfix
This commit is contained in:
parent
db8b16f655
commit
4cec6f1885
@ -1,6 +1,7 @@
|
||||
SOURCES=" page_data_loader.js factory.js uitypesdef.js utils.js uitype.js \
|
||||
i18n.js widget.js layout.js bricks.js image.js html.js splitter.js \
|
||||
jsoncall.js myoperator.js scroll.js menu.js popup.js camera.js modal.js running.js \
|
||||
jsoncall.js myoperator.js scroll.js menu.js popup.js camera.js \
|
||||
modal.js running.js llmout.js \
|
||||
markdown_viewer.js audio.js toolbar.js tab.js \
|
||||
input.js registerfunction.js button.js accordion.js dataviewer.js \
|
||||
tree.js multiple_state_image.js dynamiccolumn.js form.js message.js conform.js \
|
||||
|
||||
@ -71,7 +71,7 @@ bricks.ModelOutput = class extends bricks.VBox {
|
||||
this.logid = null;
|
||||
this.run = new bricks.BaseRunning({target:this});
|
||||
this.content.add_widget(this.run);
|
||||
this.filler = new bricks.VBox({});
|
||||
this.filler = new bricks.LLmOut({width: '100%'});
|
||||
this.filler.set_css('filler');
|
||||
this.content.add_widget(new bricks.BlankIcon({rate:2, flexShrink:0}));
|
||||
this.content.add_widget(this.filler);
|
||||
@ -95,6 +95,7 @@ bricks.ModelOutput = class extends bricks.VBox {
|
||||
this.estimate_w.add_widget(unlikew);
|
||||
likew.set_style('cursor', 'pointer');
|
||||
unlikew.set_style('cursor', 'pointer');
|
||||
this.add_widget(this.estimate_w);
|
||||
this.estimate_w.hide();
|
||||
}
|
||||
async estimate_llm(val, event){
|
||||
@ -121,6 +122,8 @@ bricks.ModelOutput = class extends bricks.VBox {
|
||||
this.run.stop_timepass();
|
||||
this.content.remove_widget(this.run);
|
||||
}
|
||||
this.filler.update(data);
|
||||
return;
|
||||
if (data.content){
|
||||
this.received_content += data.content;
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ bricks.LlmOut = class extends bricks.VBox {
|
||||
if (data.image){
|
||||
if (Array.isArray(data.image){
|
||||
this.images.concat(data.image);
|
||||
else {
|
||||
} else {
|
||||
this.images.push(data.image);
|
||||
}
|
||||
}
|
||||
@ -94,3 +94,5 @@ bricks.LlmOut = class extends bricks.VBox {
|
||||
}
|
||||
}
|
||||
}
|
||||
bricks.Factory.register('LimOut', bricks.LlmOut');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user