Oviya commited on
Commit
ae3eb54
·
1 Parent(s): 9dcf30d
Files changed (1) hide show
  1. src/app/chat/api.service.ts +3 -2
src/app/chat/api.service.ts CHANGED
@@ -7,11 +7,12 @@ import { Observable } from 'rxjs';
7
  providedIn: 'root'
8
  })
9
  export class ApiService {
10
- //private baseUrl = 'http://localhost:5012';
11
- //private apiUrl = 'http://localhost:5012/explain-grammar';
12
  private baseUrl = location.hostname.endsWith('hf.space')
13
  ? 'https://pykara-py-learn-backend.hf.space/media'
14
  : 'http://localhost:5000/media';
 
 
15
 
16
  constructor(private http: HttpClient) { }
17
 
 
7
  providedIn: 'root'
8
  })
9
  export class ApiService {
10
+
 
11
  private baseUrl = location.hostname.endsWith('hf.space')
12
  ? 'https://pykara-py-learn-backend.hf.space/media'
13
  : 'http://localhost:5000/media';
14
+ //private baseUrl = 'http://localhost:5012';
15
+ //private apiUrl = 'http://localhost:5012/explain-grammar';
16
 
17
  constructor(private http: HttpClient) { }
18