Didier commited on
Commit
c0e1898
1 Parent(s): a3d2996

Caching the results for the given examples.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ from model_llm import tokenizer, model, model_name
25
  translation_instruction = (
26
  "You will be given a text below. First detect the language of the text. "
27
  "Next, please translate the given text into English. "
28
- "Simply translate the text. Do not include facts not contain in the "
29
  "given text below. Text:\n\n"
30
  )
31
 
@@ -136,7 +136,7 @@ with gr.Blocks() as demo:
136
  textbox=textbox,
137
  #clear_btn=None, # Unfortunately, clear_btn also reset the additional inputs. Hence disabling for now.
138
  examples=examples,
139
- cache_examples=False,
140
  retry_btn="Retry",
141
  undo_btn="Undo",
142
  clear_btn="Clear",
 
25
  translation_instruction = (
26
  "You will be given a text below. First detect the language of the text. "
27
  "Next, please translate the given text into English. "
28
+ "Simply translate the text. Do not include facts not contained in the "
29
  "given text below. Text:\n\n"
30
  )
31
 
 
136
  textbox=textbox,
137
  #clear_btn=None, # Unfortunately, clear_btn also reset the additional inputs. Hence disabling for now.
138
  examples=examples,
139
+ cache_examples=True,
140
  retry_btn="Retry",
141
  undo_btn="Undo",
142
  clear_btn="Clear",