Skip to content

Commit

Permalink
fix(octra): octra stuck demo/local login
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoemp committed Sep 13, 2024
1 parent e6a30c1 commit e545ab4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/octra/src/app/core/shared/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ export function findCompatibleFileFromIO<T>(
};

while (inputs.length > 0 || outputs.length > 0) {
const filteredInputs = inputs.filter((a) => a.chain_position === i);
const filteredInputs = inputs.filter((a) => a.chain_position === undefined || a.chain_position === i);
inputs = inputs.filter((a) => !filteredInputs.find((b) => b.id === a.id));
const filteredOutputs = outputs.filter((a) => a.chain_position === i);
const filteredOutputs = outputs.filter((a) => a.chain_position === undefined || a.chain_position === i);
outputs = outputs.filter(
(a) => !filteredOutputs.find((b) => b.id === a.id)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ export class AnnotationEffects {
id: Date.now().toString(),
filename: FileInfo.fromURL(a.url).fullname,
fileType: 'audio/wave',
chain_position: 0,
type: 'input',
url: a.url,
creator_type: TaskInputOutputCreatorType.user,
Expand All @@ -780,6 +781,7 @@ export class AnnotationEffects {
id: Date.now().toString(),
filename: state.localMode.sessionFile!.name,
fileType: state.localMode.sessionFile!.type,
chain_position: 0,
type: 'input',
creator_type: TaskInputOutputCreatorType.user,
content: '',
Expand All @@ -804,6 +806,7 @@ export class AnnotationEffects {
this.routingService.staticQueryParams['audio_name'] ??
fileInfoAudio.fullname,
fileType: 'audio/wave',
chain_position: 0,
type: 'input',
url: this.routingService.staticQueryParams['audio_url'],
creator_type: TaskInputOutputCreatorType.user,
Expand Down Expand Up @@ -868,6 +871,7 @@ export class AnnotationEffects {
id: Date.now().toString(),
filename: audioName + fileInfoTranscript.extension,
fileType: fileInfoTranscript.type,
chain_position: 0,
type: 'input',
creator_type: TaskInputOutputCreatorType.user,
content,
Expand Down

0 comments on commit e545ab4

Please sign in to comment.