giorgio-caparvi commited on
Commit
ce8fac2
·
1 Parent(s): 67b8057

Updated method request

Browse files
Files changed (2) hide show
  1. api/app.py +2 -2
  2. api/output/test.txt +0 -0
api/app.py CHANGED
@@ -5,7 +5,7 @@ import subprocess
5
  app = Flask(__name__)
6
  CORS(app)
7
 
8
- @app.route('/', methods=['POST'])
9
  def generate_design():
10
  # Same command handling as before
11
  command = [
@@ -13,7 +13,7 @@ def generate_design():
13
  '--dataset_path', './assets/data/vitonhd',
14
  '--batch_size', '1',
15
  '--mixed_precision', 'fp16',
16
- '--output_dir', '../FINALE',
17
  '--save_name', 'generato_paired',
18
  '--num_workers_test', '4',
19
  '--sketch_cond_rate', '0.2',
 
5
  app = Flask(__name__)
6
  CORS(app)
7
 
8
+ @app.route('/generate-design', methods=['GET'])
9
  def generate_design():
10
  # Same command handling as before
11
  command = [
 
13
  '--dataset_path', './assets/data/vitonhd',
14
  '--batch_size', '1',
15
  '--mixed_precision', 'fp16',
16
+ '--output_dir', 'api/output',
17
  '--save_name', 'generato_paired',
18
  '--num_workers_test', '4',
19
  '--sketch_cond_rate', '0.2',
api/output/test.txt ADDED
File without changes