PierreHanna commited on
Commit
a08dc35
1 Parent(s): 918d352

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -11,22 +11,13 @@ def process(input_path):
11
  # setup the client
12
  client = SimbalsAPIClient(os.environ['TOKEN'], debug=True)
13
  # init the base parameters with your audio id and an audio url (or a local audio file)
14
- ##parameters = client.prepare_request("31415", audio_url="https://simbals:frsavUcaqe99TECR@resources.simbals.com/audio_databases/catalogs/1034/WAV%20Drive%201/BMG%20Production%20Music/101%20Dark%20Orchid%20Music/101DOM032%20The%20Seasons/BMGPM_101DOM032_012_French_Town_by_the_River.wav")
15
- #parameters = client.prepare_request("31415", audio_file="BitterEnd.wav")
16
  parameters = client.prepare_request("31415", audio_file=input_path)
17
- # if you want to use results push mode
18
- # parameters = client.prepare_request("your audio id", audio_url="an url to an audio file", results_callback_url="an url on your platform", results_callback_headers = {"a header name": "a header value"}, notify_results_early=False)
19
 
20
  # add scanmatch service with full_matches option activated, against a chosen and available database
21
- #parameters = client.add_scanmatch_full_matches(parameters, SIMBALS_GLOBAL_DB)
22
-
23
  # add scanmatch service with partial_matches option activated, against a chosen and available database
24
  #parameters = client.add_scanmatch_partial_matches(parameters, SIMBALS_GLOBAL_DB)
25
- parameters = client.add_scanmatch_partial_fast_matches(parameters, SIMBALS_GLOBAL_DB)
26
-
27
- # add audio features service with an available database
28
- #parameters = client.add_audio_features(parameters, SIMBALS_MAIN_DATABASE)
29
- #parameters = client.add_tags(parameters, SIMBALS_MAIN_DATABASE)
30
 
31
  # launch the request and test for ok/code values
32
  ok, code, job_id = client.launch_request(parameters)
 
11
  # setup the client
12
  client = SimbalsAPIClient(os.environ['TOKEN'], debug=True)
13
  # init the base parameters with your audio id and an audio url (or a local audio file)
 
 
14
  parameters = client.prepare_request("31415", audio_file=input_path)
 
 
15
 
16
  # add scanmatch service with full_matches option activated, against a chosen and available database
17
+ #parameters = client.add_scanmatch_full_matches(parameters, SIMBALS_GLOBAL_DB)
 
18
  # add scanmatch service with partial_matches option activated, against a chosen and available database
19
  #parameters = client.add_scanmatch_partial_matches(parameters, SIMBALS_GLOBAL_DB)
20
+ parameters = client.add_scanmatch_partial_fast_matches(parameters, SIMBALS_GLOBAL_DB)
 
 
 
 
21
 
22
  # launch the request and test for ok/code values
23
  ok, code, job_id = client.launch_request(parameters)