Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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():
|
10 |
with gr.Tab("🌍 Text Translator"):
|
11 |
-
translator.demo.
|
12 |
|
13 |
with gr.Tab("😊 Sentiment Analysis"):
|
14 |
-
sentiment.demo.
|
15 |
|
16 |
-
|
17 |
-
|
18 |
|
19 |
with gr.Tab("🔍 Personal Info Identifier"):
|
20 |
-
personal_info_identifier.demo.
|
21 |
|
22 |
with gr.Tab("📈 Customer Churn Prediction"):
|
23 |
-
churn_analysis.demo.
|
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()
|