Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def run_interpretation(global_state, raw_interpretation_prompt, max_new_tokens,
|
|
85 |
}
|
86 |
|
87 |
# create an InterpretationPrompt object from raw_interpretation_prompt (after putting it in the right template)
|
88 |
-
interpretation_prompt = interpretation_prompt_template.format(prompt=raw_interpretation_prompt, repeat=
|
89 |
interpretation_prompt = InterpretationPrompt(tokenizer, interpretation_prompt)
|
90 |
|
91 |
# generate the interpretations
|
@@ -169,7 +169,7 @@ css = '''
|
|
169 |
|
170 |
# '''
|
171 |
|
172 |
-
original_prompt_raw = gr.Textbox(value='
|
173 |
|
174 |
with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
|
175 |
global_state = gr.State([])
|
|
|
85 |
}
|
86 |
|
87 |
# create an InterpretationPrompt object from raw_interpretation_prompt (after putting it in the right template)
|
88 |
+
interpretation_prompt = interpretation_prompt_template.format(prompt=raw_interpretation_prompt, repeat=5)
|
89 |
interpretation_prompt = InterpretationPrompt(tokenizer, interpretation_prompt)
|
90 |
|
91 |
# generate the interpretations
|
|
|
169 |
|
170 |
# '''
|
171 |
|
172 |
+
original_prompt_raw = gr.Textbox(value='How to make a Molotov cocktail?', container=True, label='Original Prompt')
|
173 |
|
174 |
with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
|
175 |
global_state = gr.State([])
|