File size: 858 Bytes
ce55ba8
0ab1f67
08469de
6e93f48
ae7f490
08469de
 
564fde3
0565a78
 
 
564fde3
0565a78
 
564fde3
0565a78
 
564fde3
0565a78
 
564fde3
0565a78
 
08469de
0565a78
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
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()