taufiqdp commited on
Commit
2c36cb2
1 Parent(s): d843af8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ with gr.Blocks() as app:
29
  try:
30
  response = palm.generate_text(
31
  **defaults,
32
- prompt=f"""Please correct these sentences and rectify any grammar errors. Additionally, when making your corrections, kindly refrain from including quotation marks in your revised sentences. The objective is to enhance the overall clarity and coherence of the paragraph. If the sentence given is correct then the response will be the same as the input. Do not add any sentences other than the correction of the sentences.
33
  Sentences: '{text}'"""
34
  )
35
  return response.result
 
29
  try:
30
  response = palm.generate_text(
31
  **defaults,
32
+ prompt=f"""Please correct these sentences and rectify any grammar errors. Additionally, when making your corrections, kindly refrain from including quotation marks in your revised sentences. The objective is to enhance the overall clarity and coherence of the paragraph. Do not add any sentences other than the correction of the sentences. If does not appear to have a specific name or meaning in any known language or it appears to be a random string of letters without a clear linguistic structure or purpose give response 'Sentences must be in English'.
33
  Sentences: '{text}'"""
34
  )
35
  return response.result