litvinovmitch11 commited on
Commit
055592f
·
verified ·
1 Parent(s): 269c434

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (2) hide show
  1. config.yaml +1 -1
  2. src/app/config.py +2 -2
config.yaml CHANGED
@@ -5,4 +5,4 @@ max_seq_len: 300
5
  server:
6
  share: false
7
  host: "0.0.0.0"
8
- port: 7861
 
5
  server:
6
  share: false
7
  host: "0.0.0.0"
8
+ port: 7860
src/app/config.py CHANGED
@@ -11,7 +11,7 @@ class AppConfig:
11
  max_seq_len: int = 300
12
  share: bool = True
13
  host: str = "0.0.0.0"
14
- port: int = 7861
15
 
16
  @classmethod
17
  def from_yaml(cls, config_path: str) -> 'AppConfig':
@@ -35,5 +35,5 @@ class AppConfig:
35
  max_seq_len=int(config_data['max_seq_len']),
36
  share=config_data.get('server', {}).get('share', True),
37
  host=config_data.get('server', {}).get('host', "0.0.0.0"),
38
- port=config_data.get('server', {}).get('port', 7861)
39
  )
 
11
  max_seq_len: int = 300
12
  share: bool = True
13
  host: str = "0.0.0.0"
14
+ port: int = 7860
15
 
16
  @classmethod
17
  def from_yaml(cls, config_path: str) -> 'AppConfig':
 
35
  max_seq_len=int(config_data['max_seq_len']),
36
  share=config_data.get('server', {}).get('share', True),
37
  host=config_data.get('server', {}).get('host', "0.0.0.0"),
38
+ port=config_data.get('server', {}).get('port', 7860)
39
  )