Spaces:
Running
Running
Commit
Β·
e3a0318
1
Parent(s):
2336086
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import pandas as pd
|
|
5 |
path_to_L_model = str(os.environ['path_to_L_model'])
|
6 |
path_to_S_model = str(os.environ['path_to_S_model'])
|
7 |
read_token = str(os.environ['read_token'])
|
8 |
-
|
9 |
|
10 |
languages = pd.read_csv("model_lang.csv", names=["Lang_acr"])
|
11 |
|
@@ -49,7 +49,7 @@ interface_model_L = gr.Interface.load(
|
|
49 |
name=path_to_L_model,
|
50 |
description=description_L,
|
51 |
examples=examples,
|
52 |
-
title=
|
53 |
api_key=read_token,
|
54 |
)
|
55 |
|
@@ -57,8 +57,8 @@ interface_model_S = gr.Interface.load(
|
|
57 |
name=path_to_S_model,
|
58 |
description=description_S,
|
59 |
examples=examples[0],
|
60 |
-
title=
|
61 |
-
api_key=
|
62 |
)
|
63 |
|
64 |
gr.TabbedInterface(
|
|
|
5 |
path_to_L_model = str(os.environ['path_to_L_model'])
|
6 |
path_to_S_model = str(os.environ['path_to_S_model'])
|
7 |
read_token = str(os.environ['read_token'])
|
8 |
+
read_token_ii = str(os.environ['read_token_ii'])
|
9 |
|
10 |
languages = pd.read_csv("model_lang.csv", names=["Lang_acr"])
|
11 |
|
|
|
49 |
name=path_to_L_model,
|
50 |
description=description_L,
|
51 |
examples=examples,
|
52 |
+
title="DSA Large Multilingual",
|
53 |
api_key=read_token,
|
54 |
)
|
55 |
|
|
|
57 |
name=path_to_S_model,
|
58 |
description=description_S,
|
59 |
examples=examples[0],
|
60 |
+
title="DSA Small English Only",
|
61 |
+
api_key=read_token_ii,
|
62 |
)
|
63 |
|
64 |
gr.TabbedInterface(
|