Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Nov 24, 2023
1 parent 354c4fc commit 8078434
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions demo/react-native/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ export default class App extends Component<Props, State> {
this._leopard = await Leopard.create(
this._accessKey,
`models/leopard_params${suffix}.pv`,
{ enableAutomaticPunctuation: true },
{
enableAutomaticPunctuation: true,
enableDiarization: true
},
);
} catch (err: any) {
this.handleError(err);
Expand Down Expand Up @@ -261,7 +264,7 @@ export default class App extends Component<Props, State> {
<Text style={styles.wordCell}>Start</Text>
<Text style={styles.wordCell}>End</Text>
<Text style={styles.wordCell}>Confidence</Text>
<Text style={styles.wordCell}>Speaker Tag</Text>
<Text style={styles.wordCell}>Tag</Text>
</View>
<ScrollView style={styles.wordBox}>
{this.state.words.map((word: LeopardWord, index: number) =>
Expand Down

0 comments on commit 8078434

Please sign in to comment.