jslin09 commited on
Commit
9136540
1 Parent(s): 359ab85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ with gr.Blocks() as demo:
72
  btn.click(generate, inputs=[result], outputs=[result])
73
  with gr.Tab("Random Generative"):
74
  # result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=prompts[1])
75
- result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, value = str(examples[0]))
76
  gr.Examples(examples, label='Examples', inputs=[result2])
77
  rnd_btn = gr.Button("Random Drafting")
78
  rnd_btn.click(rnd_generate, inputs=[result2], outputs=[result2])
 
72
  btn.click(generate, inputs=[result], outputs=[result])
73
  with gr.Tab("Random Generative"):
74
  # result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=prompts[1])
75
+ result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, value = examples[0][0])
76
  gr.Examples(examples, label='Examples', inputs=[result2])
77
  rnd_btn = gr.Button("Random Drafting")
78
  rnd_btn.click(rnd_generate, inputs=[result2], outputs=[result2])