Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,9 @@ commands = [
|
|
| 10 |
"موبائل پیکیجز انٹرنیٹ پیکیج",
|
| 11 |
" چالان جمع ",
|
| 12 |
]
|
| 13 |
-
replies = [
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
]
|
| 17 |
# Function to find the most similar command
|
| 18 |
def find_most_similar_command(statement, command_list):
|
| 19 |
best_match = None
|
|
@@ -25,7 +24,7 @@ def find_most_similar_command(statement, command_list):
|
|
| 25 |
if similarity > highest_similarity:
|
| 26 |
highest_similarity = similarity
|
| 27 |
best_match = command
|
| 28 |
-
reply=
|
| 29 |
i+=1
|
| 30 |
|
| 31 |
return best_match,reply
|
|
|
|
| 10 |
"موبائل پیکیجز انٹرنیٹ پیکیج",
|
| 11 |
" چالان جمع ",
|
| 12 |
]
|
| 13 |
+
# replies = [
|
| 14 |
+
# 1,2,
|
| 15 |
+
# ]
|
|
|
|
| 16 |
# Function to find the most similar command
|
| 17 |
def find_most_similar_command(statement, command_list):
|
| 18 |
best_match = None
|
|
|
|
| 24 |
if similarity > highest_similarity:
|
| 25 |
highest_similarity = similarity
|
| 26 |
best_match = command
|
| 27 |
+
reply=i
|
| 28 |
i+=1
|
| 29 |
|
| 30 |
return best_match,reply
|