Update app.py
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def login(username, password):
|
|
| 68 |
MODELS = ['VuAI/khi-van', 'VuAI/vi2vi_vn98']
|
| 69 |
|
| 70 |
curr_words = 9999
|
| 71 |
-
with gr.Blocks(title="Translator", theme=gr.themes.Default(primary_hue="red", secondary_hue="red")) as demo:
|
| 72 |
with gr.Row():
|
| 73 |
with gr.Column(scale=20):
|
| 74 |
gr.Text('VN98 Translation', show_label=False).style(container=False)
|
|
@@ -96,4 +96,4 @@ with gr.Blocks(title="Translator", theme=gr.themes.Default(primary_hue="red", se
|
|
| 96 |
|
| 97 |
|
| 98 |
if __name__ == "__main__":
|
| 99 |
-
demo.launch(
|
|
|
|
| 68 |
MODELS = ['VuAI/khi-van', 'VuAI/vi2vi_vn98']
|
| 69 |
|
| 70 |
curr_words = 9999
|
| 71 |
+
with gr.Blocks(title="VN98 Translator", theme=gr.themes.Default(primary_hue="red", secondary_hue="red")) as demo:
|
| 72 |
with gr.Row():
|
| 73 |
with gr.Column(scale=20):
|
| 74 |
gr.Text('VN98 Translation', show_label=False).style(container=False)
|
|
|
|
| 96 |
|
| 97 |
|
| 98 |
if __name__ == "__main__":
|
| 99 |
+
demo.launch(auth=login, auth_message="VN98 Translator.")
|