Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from modules.churn_analysis import predict
|
|
|
|
| 3 |
|
| 4 |
-
# Existing Tabs with Gradio Blocks
|
| 5 |
with gr.Blocks() as app:
|
| 6 |
-
|
| 7 |
-
# Add the Text Translator Tab
|
| 8 |
with gr.Tab("Text Translator"):
|
| 9 |
-
|
| 10 |
-
|
| 11 |
|
| 12 |
# Add the Churn Analysis Tab
|
| 13 |
with gr.Tab("Churn Analysis"):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from modules.churn_analysis import predict
|
| 3 |
+
from modules.translator import text_translator_ui
|
| 4 |
|
|
|
|
| 5 |
with gr.Blocks() as app:
|
|
|
|
|
|
|
| 6 |
with gr.Tab("Text Translator"):
|
| 7 |
+
text_translator_ui()
|
| 8 |
+
|
| 9 |
|
| 10 |
# Add the Churn Analysis Tab
|
| 11 |
with gr.Tab("Churn Analysis"):
|