Inori_Chatbot / app.py
SaitoHoujou's picture
Initialize Deployment
0d061c3 verified
raw
history blame contribute delete
537 Bytes
import subprocess
import time
import gradio as gr
from url_tab import create_url_tab
from pdf_tab import create_pdf_tab
from conversation import create_conv_tab
backend_command = ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"]
backend_process = subprocess.Popen(backend_command)
print("Running server backend...")
time.sleep(5)
print("Server backend is ready.")
with gr.Blocks() as demo:
gr.Markdown("Inori Chatbot")
create_conv_tab()
create_url_tab()
create_pdf_tab()
demo.launch()