Skip to content

Commit 93de4f4

Browse files
committed
Adjusting proper linting
1 parent 4fffc9b commit 93de4f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Detect_and_Translate_languages/detect_translate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def trans(x, d):
6161

6262

6363
print("Start speaking.....(To terminate the program say 'Stop!')")
64-
while(1):
64+
while (1):
6565
try:
6666
with sr.Microphone() as source2:
6767
r.adjust_for_ambient_noise(source2, duration=0.2)
@@ -70,7 +70,7 @@ def trans(x, d):
7070
MyText.lower()
7171
if MyText == 'stop':
7272
break
73-
print("Did you say "+MyText)
73+
print("Did you say " + MyText)
7474
d = input(
7575
'Enter the language you need the text to be translated into:')
7676
translated = trans(MyText, d)

0 commit comments

Comments
 (0)