Hunzla commited on
Commit
c3e3452
1 Parent(s): 6e57fe3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -24,9 +24,13 @@ with open("tasks.json", "r",encoding="utf-8") as json_file:
24
  def find_most_similar_command(statement, command_list):
25
  best_match = None
26
  highest_similarity = 0
 
27
  for index,file_list in command_list.items():
 
28
  for command in file_list:
29
  similarity = SequenceMatcher(None, statement, command).ratio()
 
 
30
  print(index,"similarity",similarity)
31
  if similarity > highest_similarity:
32
  highest_similarity = similarity
 
24
  def find_most_similar_command(statement, command_list):
25
  best_match = None
26
  highest_similarity = 0
27
+ i=0
28
  for index,file_list in command_list.items():
29
+ "sum_match_"+str(i)=0
30
  for command in file_list:
31
  similarity = SequenceMatcher(None, statement, command).ratio()
32
+ "sum_match_"+str(i)="sum_match_"+str(i)+similarity
33
+ print("sum_match_"+str(i))
34
  print(index,"similarity",similarity)
35
  if similarity > highest_similarity:
36
  highest_similarity = similarity