Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,4 +71,7 @@ with gr.Blocks(theme="ParityError/Interstellar@0.0.1") as demo:
|
|
| 71 |
btn = gr.Button("Generate")
|
| 72 |
btn.click(run_tinystyler, [source_text, target_example_texts, reranking, temperature, top_p], output)
|
| 73 |
|
|
|
|
|
|
|
|
|
|
| 74 |
demo.launch()
|
|
|
|
| 71 |
btn = gr.Button("Generate")
|
| 72 |
btn.click(run_tinystyler, [source_text, target_example_texts, reranking, temperature, top_p], output)
|
| 73 |
|
| 74 |
+
# Initialize the fields with the first example
|
| 75 |
+
source_text.value, target_example_texts.value, reranking.value, temperature.value, top_p.value, output.value = set_example(list(preset_examples.keys())[0])
|
| 76 |
+
|
| 77 |
demo.launch()
|