Spaces:
Paused
Paused
Update app.py
Browse files
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.
|
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
|