Oviya commited on
Commit
ce832b8
·
1 Parent(s): de33281

update pron url

Browse files
src/app/pronunciation/pronunciation.component.ts CHANGED
@@ -314,7 +314,7 @@ export class PronunciationComponent implements OnDestroy, OnInit {
314
  form.append('word', this.word);
315
 
316
  try {
317
- const res = await this.http.post<any>(`${this.backendURL}/check_pronunciation`, form).toPromise();
318
 
319
  // Compute phonemic score (backend provides phoneme_similarity in range 0..1)
320
  const phonemeSimilarity = Number(res?.phoneme_similarity ?? res?.phonemeSimilarity ?? 0);
 
314
  form.append('word', this.word);
315
 
316
  try {
317
+ const res = await this.http.post<any>(`${this.backendURL}/pron/check_pronunciation`, form).toPromise();
318
 
319
  // Compute phonemic score (backend provides phoneme_similarity in range 0..1)
320
  const phonemeSimilarity = Number(res?.phoneme_similarity ?? res?.phonemeSimilarity ?? 0);
src/app/pronunciation/pronunciation.service.ts CHANGED
@@ -14,7 +14,7 @@ export class ApiService {
14
  : 'http://localhost:5000'; // <-- ensure this matches your Flask app port
15
 
16
  // Pronunciation blueprint base path (matches backend blueprint url_prefix '/pron')
17
- private pronBase = `${this.ragHost}`;
18
 
19
  constructor(private http: HttpClient) { }
20
 
 
14
  : 'http://localhost:5000'; // <-- ensure this matches your Flask app port
15
 
16
  // Pronunciation blueprint base path (matches backend blueprint url_prefix '/pron')
17
+ private pronBase = `${this.ragHost}/pron`;
18
 
19
  constructor(private http: HttpClient) { }
20