Rawiwan1912 commited on
Commit
e67177a
·
verified ·
1 Parent(s): 4443761

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -1,25 +1,23 @@
1
  import gradio as gr
2
-
3
- # นำเข้าโมดูลแต่ละตัวจากโฟลเดอร์ modules
4
- from modules import sentiment, translator, personal_info_identifier, churn_analysis
5
 
6
  with gr.Blocks(title="All-in-One AI App") as app:
7
  gr.Markdown("# 🤖 All-in-One AI Utilities App")
8
 
9
- with gr.Tabs(): # ใช้ gr.Tabs() ครอบ gr.Tab
10
  with gr.Tab("🌍 Text Translator"):
11
- translator.demo.launch()
12
 
13
  with gr.Tab("😊 Sentiment Analysis"):
14
- sentiment.demo.launch()
15
 
16
- # with gr.Tab("📊 Financial Analyst AI"):
17
- # financial_analyst.demo.launch()
18
 
19
  with gr.Tab("🔍 Personal Info Identifier"):
20
- personal_info_identifier.demo.launch()
21
 
22
  with gr.Tab("📈 Customer Churn Prediction"):
23
- churn_analysis.demo.launch()
24
 
25
- app.launch()
 
1
  import gradio as gr
2
+ from modules import sentiment, financial_analyst, translator, personal_info_identifier, churn_analysis
 
 
3
 
4
  with gr.Blocks(title="All-in-One AI App") as app:
5
  gr.Markdown("# 🤖 All-in-One AI Utilities App")
6
 
7
+ with gr.Tabs():
8
  with gr.Tab("🌍 Text Translator"):
9
+ translator.demo.render()
10
 
11
  with gr.Tab("😊 Sentiment Analysis"):
12
+ sentiment.demo.render()
13
 
14
+ with gr.Tab("📊 Financial Analyst AI"):
15
+ financial_analyst.demo.render()
16
 
17
  with gr.Tab("🔍 Personal Info Identifier"):
18
+ personal_info_identifier.demo.render()
19
 
20
  with gr.Tab("📈 Customer Churn Prediction"):
21
+ churn_analysis.demo.render()
22
 
23
+ app.launch()