Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -29,12 +29,12 @@ with open("example.txt") as f:
|
|
29 |
|
30 |
with gr.Blocks() as app:
|
31 |
def chat(text):
|
32 |
-
f = open('
|
33 |
try:
|
34 |
response = palm.generate_text(
|
35 |
**defaults,
|
36 |
prompt = f"""Rewrite the following sentence to fix the grammar issues and correct the sentence.
|
37 |
-
{
|
38 |
input: {text}
|
39 |
fixed"""
|
40 |
)
|
|
|
29 |
|
30 |
with gr.Blocks() as app:
|
31 |
def chat(text):
|
32 |
+
f = open('dump.txt', 'a')
|
33 |
try:
|
34 |
response = palm.generate_text(
|
35 |
**defaults,
|
36 |
prompt = f"""Rewrite the following sentence to fix the grammar issues and correct the sentence.
|
37 |
+
{example}
|
38 |
input: {text}
|
39 |
fixed"""
|
40 |
)
|