jin-nin commited on
Commit
616ad48
1 Parent(s): 17235f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -18
app.py CHANGED
@@ -59,27 +59,25 @@ with gr.Blocks(css='style.css') as demo:
59
 
60
  with gr.Row(variant="compact"):
61
  input_text_ru = gr.Textbox(
62
- label="Short Ru Prompt",
63
- show_label=False,
64
- max_lines=2,
65
- placeholder="Enter a basic idea on Russian",
66
- ).style(
67
- container=False,
68
  )
69
  Translate = gr.Button("Ru ▶ En").style(full_width=False)
70
  input_text = gr.Textbox(
71
- label="Short En Prompt",
72
- show_label=False,
73
- max_lines=2,
74
- placeholder="Enter a basic idea",
75
  )
76
 
77
  with gr.Row(variant="compact"):
78
  prompt = gr.Textbox(
79
- label="Enter your prompt",
80
- show_label=False,
81
- max_lines=2,
82
- placeholder="Full Prompt",
83
  ).style(
84
  container=False,
85
  )
@@ -105,10 +103,11 @@ with gr.Blocks(css='style.css') as demo:
105
 
106
  Translate.click(ru2en, inputs=[input_text_ru], outputs=[input_text], queue=False)
107
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt], queue=False)
108
- run1.click(send_it, inputs=[prompt, noise_level], outputs=[output1], queue=False)
109
- run2.click(send_it, inputs=[prompt, noise_level], outputs=[output2], queue=False)
110
- run3.click(send_it, inputs=[prompt, noise_level], outputs=[output3], queue=False)
111
- run4.click(send_it, inputs=[prompt, noise_level], outputs=[output4], queue=False)
 
112
 
113
 
114
  demo.launch(enable_queue=True, inline=True)
 
59
 
60
  with gr.Row(variant="compact"):
61
  input_text_ru = gr.Textbox(
62
+ label="Short Ru",
63
+ # show_label=False,
64
+ # max_lines=2,
65
+ placeholder="девушка",
 
 
66
  )
67
  Translate = gr.Button("Ru ▶ En").style(full_width=False)
68
  input_text = gr.Textbox(
69
+ label="Short En",
70
+ # show_label=False,
71
+ # max_lines=2,
72
+ placeholder="girl",
73
  )
74
 
75
  with gr.Row(variant="compact"):
76
  prompt = gr.Textbox(
77
+ label="Prompt",
78
+ # show_label=False,
79
+ # max_lines=2,
80
+ placeholder="proto, girl, high details",
81
  ).style(
82
  container=False,
83
  )
 
103
 
104
  Translate.click(ru2en, inputs=[input_text_ru], outputs=[input_text], queue=False)
105
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt], queue=False)
106
+
107
+ run1.click(send_it, inputs=[prompt, noise_level], outputs=[output1])
108
+ run2.click(send_it, inputs=[prompt, noise_level], outputs=[output2])
109
+ run3.click(send_it, inputs=[prompt, noise_level], outputs=[output3])
110
+ run4.click(send_it, inputs=[prompt, noise_level], outputs=[output4])
111
 
112
 
113
  demo.launch(enable_queue=True, inline=True)