Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,7 +83,7 @@ def choice_group_d(var_Test):
|
|
| 83 |
|
| 84 |
def test_pass(test):
|
| 85 |
print(test)
|
| 86 |
-
if test==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):
|
|
@@ -135,7 +135,6 @@ def make_me():
|
|
| 135 |
|
| 136 |
test_button = gr.Button('test', width=30, height=10)
|
| 137 |
test_button.click(test_pass,txt_input_p,group_model_choice)
|
| 138 |
-
print(os.getenv('p'))
|
| 139 |
with gr.Row():
|
| 140 |
gr.HTML("""
|
| 141 |
<div class="footer">
|
|
|
|
| 83 |
|
| 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):
|
|
|
|
| 135 |
|
| 136 |
test_button = gr.Button('test', width=30, height=10)
|
| 137 |
test_button.click(test_pass,txt_input_p,group_model_choice)
|
|
|
|
| 138 |
with gr.Row():
|
| 139 |
gr.HTML("""
|
| 140 |
<div class="footer">
|