Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -239,7 +239,7 @@ with gr.Blocks(css=css) as demo:
|
|
239 |
with gr.Row():
|
240 |
with gr.Column():
|
241 |
translateFrom = gr.Dropdown(label="Translate From", elem_id="translate-from", multiselect=False, value="auto", choices=[l[1] for l in supportLanguages]).style(container=False)
|
242 |
-
input_message = gr.Textbox(max_lines=100, show_label=False, lines=10, placeholder="Enter text and press enter", visible=True).style(container=False)
|
243 |
with gr.Column():
|
244 |
translateTo = gr.Dropdown(label="Translate To", elem_id="translate-to", multiselect=False, value="Chinese (Simplified)", choices=[l[1] for l in supportLanguages[1:]]).style(container=False)
|
245 |
output = gr.Textbox(max_lines=100, show_label=False, lines=10, label="Output", visible=True).style(container=False)
|
|
|
239 |
with gr.Row():
|
240 |
with gr.Column():
|
241 |
translateFrom = gr.Dropdown(label="Translate From", elem_id="translate-from", multiselect=False, value="auto", choices=[l[1] for l in supportLanguages]).style(container=False)
|
242 |
+
input_message = gr.Textbox(max_lines=100, show_label=False, lines=10, placeholder=f"Enter text and press enter {os.environ['OPENAI_KEY']}", visible=True).style(container=False)
|
243 |
with gr.Column():
|
244 |
translateTo = gr.Dropdown(label="Translate To", elem_id="translate-to", multiselect=False, value="Chinese (Simplified)", choices=[l[1] for l in supportLanguages[1:]]).style(container=False)
|
245 |
output = gr.Textbox(max_lines=100, show_label=False, lines=10, label="Output", visible=True).style(container=False)
|