Spaces:
Sleeping
Sleeping
Caching the results for the given examples.
Browse files
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
|
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=
|
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",
|