taufiqdp commited on
Commit
da3a9b9
1 Parent(s): b4b1619

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('/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
- {examples}
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
  )