Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -18,13 +18,13 @@ defaults = {
|
|
18 |
|
19 |
}
|
20 |
|
21 |
-
def chat(
|
22 |
response = palm.generate_text(
|
23 |
**defaults,
|
24 |
-
prompt=f"""Correct this sentences and correct the grammar. Do not add the quotation marks on your correction sentences: '{
|
25 |
)
|
26 |
return response.result
|
27 |
|
28 |
demo = gr.Interface(fn=chat, inputs=gr.Textbox(lines=10), outputs=gr.Textbox(lines=10), allow_flagging="never")
|
29 |
|
30 |
-
demo.launch(
|
|
|
18 |
|
19 |
}
|
20 |
|
21 |
+
def chat(text):
|
22 |
response = palm.generate_text(
|
23 |
**defaults,
|
24 |
+
prompt=f"""Correct this sentences and correct the grammar. Do not add the quotation marks on your correction sentences: '{text}'"""
|
25 |
)
|
26 |
return response.result
|
27 |
|
28 |
demo = gr.Interface(fn=chat, inputs=gr.Textbox(lines=10), outputs=gr.Textbox(lines=10), allow_flagging="never")
|
29 |
|
30 |
+
demo.launch()
|