Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,11 @@ def choice_group_d(var_Test):
|
|
84 |
def test_pass(test):
|
85 |
print(test)
|
86 |
if test==os.getenv('p'):
|
|
|
87 |
return gr.Dropdown(label="test Model", show_label=False, choices=list(models_test) , allow_custom_value=True)
|
|
|
|
|
|
|
88 |
|
89 |
def gen_fn(model_str, prompt):
|
90 |
if model_str == 'NA':
|
|
|
84 |
def test_pass(test):
|
85 |
print(test)
|
86 |
if test==os.getenv('p'):
|
87 |
+
print("ok")
|
88 |
return gr.Dropdown(label="test Model", show_label=False, choices=list(models_test) , allow_custom_value=True)
|
89 |
+
else:
|
90 |
+
print("nop")
|
91 |
+
return gr.Dropdown(label="test Model", show_label=False, choices=list([]) , allow_custom_value=True)
|
92 |
|
93 |
def gen_fn(model_str, prompt):
|
94 |
if model_str == 'NA':
|