Skip to content

Commit

Permalink
Update TranslatorApplication.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerlancism committed Jan 14, 2024
1 parent 648d9c0 commit d4035d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/TranslatorApplication.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function TranslatorApplication() {
const outputWorkingProgress = parser.fromSrt(srtInputText)
const currentOutputs = []
const openai = createOpenAIClient(APIvalue, true)
const translator = new Translator({ to: "English" }, {
const translator = new Translator({ from: fromLanguage, to: toLanguage }, {
openai,
onStreamChunk: (data) => {
currentStream += data
Expand Down

0 comments on commit d4035d9

Please sign in to comment.