OpenChatGpt-Gen / app.py
Rooni's picture
Create app.py
ac2109e
raw
history blame
741 Bytes
import gradio as gr
import os
def gen(prompt):
return f'WORK: {prompt}'
css = """
footer {visibility: hidden !important;}
"""
with gr.Blocks(css=css) as ui:
with gr.Tab("Генерация", id='vkl1'):
with gr.Row():
prompt = gr.Textbox(label="Prompt", lines=3)
with gr.Tab("Параметры", id='vkl2'):
gr.Markdown("## Скоро...")
text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
text_output = gr.Textbox(show_label=False, placeholder="Привет! Чем я могу вам помочь?")
text_button.click(gen, inputs=[prompt], outputs=text_output)
#end
ui.queue(api_open=False).launch()