Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -64,6 +64,7 @@ def choice_group_a(group_model_choice):
|
|
64 |
for m in models_test:
|
65 |
if group_model_choice==m[1]:
|
66 |
choice=m
|
|
|
67 |
return choice
|
68 |
|
69 |
def choice_group_b(group_model_choice):
|
@@ -81,8 +82,7 @@ def choice_group_d(var_Test):
|
|
81 |
stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
|
82 |
return gen_event
|
83 |
|
84 |
-
def test_pass(test):
|
85 |
-
print((test,os.getenv('p'),type(test),type(os.getenv('p')),test==os.getenv('p')))
|
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)
|
|
|
64 |
for m in models_test:
|
65 |
if group_model_choice==m[1]:
|
66 |
choice=m
|
67 |
+
print(choice)
|
68 |
return choice
|
69 |
|
70 |
def choice_group_b(group_model_choice):
|
|
|
82 |
stop_button.click(lambda s: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
|
83 |
return gen_event
|
84 |
|
85 |
+
def test_pass(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)
|