lg-lima1 commited on
Commit
8575daf
·
1 Parent(s): 7df4657

fix: edited hugging face repository space path

Browse files
Files changed (1) hide show
  1. app/static/editor/js/editor-rest.js +3 -46
app/static/editor/js/editor-rest.js CHANGED
@@ -1,59 +1,16 @@
1
  import { Oid } from 'https://cdn.jsdelivr.net/npm/@mundorum/collections@0.3.0/full.js'
2
- // import { Oid } from '@mundorum/oid/oid.js'
3
-
4
- Oid.customize('oid:rest', {
5
- cid: 'cancer-predictor',
6
- api: {
7
- oas: {
8
- paths: {
9
- 'https://santanche-factory-ml.hf.space/train?train_path={train_path}&test_path={test_path}': {
10
- 'post': {
11
- operationId: 'train',
12
- parameters: [
13
- {name: 'train_path',
14
- in: 'path'
15
- },
16
- {name: 'test_path',
17
- in: 'path'
18
- }
19
- ]
20
- }
21
- },
22
- 'https://santanche-factory-ml.hf.space/predict?radius_mean={radius_mean}&texture_mean={texture_mean}&symmetry_mean={symmetry_mean}&fractal_dimension_mean={fractal_dimension_mean}': {
23
- 'get': {
24
- operationId: 'predict',
25
- parameters: [
26
- {name: 'radius_mean',
27
- in: 'path'
28
- },
29
- {name: 'texture_mean',
30
- in: 'path'
31
- },
32
- {name: 'symmetry_mean',
33
- in: 'path'
34
- },
35
- {name: 'fractal_dimension_mean',
36
- in: 'path'
37
- }
38
- ]
39
- }
40
- }
41
- }
42
- }
43
- }
44
- })
45
 
46
  Oid.customize('oid:rest', {
47
  cid: 'factory-predictor',
48
  api: {
49
  oas: {
50
  paths: {
51
- 'https://santanche-factory-ml.hf.space/train': {
52
  'post': {
53
  operationId: 'train'
54
  }
55
  },
56
- 'https://santanche-factory-ml.hf.space/inform_temperature?value={value}': {
57
  'post': {
58
  operationId: 'temperature',
59
  parameters: [
@@ -63,7 +20,7 @@ Oid.customize('oid:rest', {
63
  ]
64
  }
65
  },
66
- 'https://santanche-factory-ml.hf.space/inform_pressure?value={value}': {
67
  'post': {
68
  operationId: 'pressure',
69
  parameters: [
 
1
  import { Oid } from 'https://cdn.jsdelivr.net/npm/@mundorum/collections@0.3.0/full.js'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  Oid.customize('oid:rest', {
4
  cid: 'factory-predictor',
5
  api: {
6
  oas: {
7
  paths: {
8
+ 'https://lg-lima1-factory-ml.hf.space/train': {
9
  'post': {
10
  operationId: 'train'
11
  }
12
  },
13
+ 'https://lg-lima1-factory-ml.hf.space/inform_temperature?value={value}': {
14
  'post': {
15
  operationId: 'temperature',
16
  parameters: [
 
20
  ]
21
  }
22
  },
23
+ 'https://lg-lima1-factory-ml.hf.space/inform_pressure?value={value}': {
24
  'post': {
25
  operationId: 'pressure',
26
  parameters: [