AjayP13 commited on
Commit
1118a37
·
verified ·
1 Parent(s): f6fe4f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -71,4 +71,7 @@ with gr.Blocks(theme="ParityError/[email protected]") 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()