Sai004 commited on
Commit
48127ed
·
1 Parent(s): 589585c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -254,7 +254,7 @@ def validation(text):
254
  else:
255
  adjective_str = ' '.join(adjectives)
256
  noun_str = ' '.join(nouns)
257
- combined_sentence = f"{adjective_str} {noun_str}"
258
  result['validation'] = 'valid'
259
  result['sentence'] = combined_sentence
260
 
 
254
  else:
255
  adjective_str = ' '.join(adjectives)
256
  noun_str = ' '.join(nouns)
257
+ combined_sentence = f"{adjective_str} {noun_str}".strip()
258
  result['validation'] = 'valid'
259
  result['sentence'] = combined_sentence
260