Spaces:
Sleeping
Sleeping
import gradio as gr | |
# นำเข้าโมดูลแต่ละตัวจากโฟลเดอร์ modules | |
from modules import sentiment, translator, personal_info_identifier, churn_analysis | |
with gr.Blocks(title="All-in-One AI App") as app: | |
gr.Markdown("# 🤖 All-in-One AI Utilities App") | |
with gr.Tabs(): # ใช้ gr.Tabs() ครอบ gr.Tab | |
with gr.Tab("🌍 Text Translator"): | |
translator.demo.launch() | |
with gr.Tab("😊 Sentiment Analysis"): | |
sentiment.demo.launch() | |
# with gr.Tab("📊 Financial Analyst AI"): | |
# financial_analyst.demo.launch() | |
with gr.Tab("🔍 Personal Info Identifier"): | |
personal_info_identifier.demo.launch() | |
with gr.Tab("📈 Customer Churn Prediction"): | |
churn_analysis.demo.launch() | |
app.launch() | |