File size: 638 Bytes
8ec3f37 c3a1883 8ec3f37 c3a1883 fdb4e49 c3a1883 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
import os
import gradio as gr
from tabs.audit import audit_tab
from tabs.ocr import ocr_tab
from tabs.helloworld import hello_world_tab
from tabs.chatbot import chatbot_tab
from tabs.openai import openai_tab
gr.close_all()
print(os.environ.get('xixi'))
css_string = """
#ddd1233 .user {
min-width: 100px;
max-width: 500px;
width: auto;
}
#ddd1233 .bot {
min-width: 100px;
max-width: 500px;
width: auto;
}
"""
with gr.Blocks(css=css_string) as demo:
gr.Markdown("""
# gradio分享呀
""")
hello_world_tab()
audit_tab()
ocr_tab()
# chatbot_tab()
openai_tab()
demo.launch()
|