chat-gpt-batch / app.py
hugforziio's picture
Update app.py
ddea92b
raw
history blame
616 Bytes
import gradio as gr
import gradio
from app_cn import demo as demo_cn
from app_en import demo as demo_en
css = """
.table-wrap .cell-wrap input {min-width:80%}
#api-key-textbox textarea {filter:blur(8px); transition: filter 0.25s}
#api-key-textbox textarea:focus {filter:none}
#chat-log-md hr {margin-top: 1rem; margin-bottom: 1rem;}
#chat-markdown-wrap-box {max-height:80vh; overflow: auto !important;}
"""
demo = gr.TabbedInterface(
[
demo_cn,
demo_en,
], [
"中文版",
"English",
], css=css)
if __name__ == "__main__":
demo.queue(concurrency_count=200).launch()