Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,6 @@ def test_pass(test_pass):
|
|
89 |
if test_pass.value==p:
|
90 |
test_p=True
|
91 |
print(test_p)
|
92 |
-
return test_p
|
93 |
|
94 |
def gen_fn(model_str, prompt):
|
95 |
if model_str == 'NA':
|
@@ -115,7 +114,7 @@ def make_me():
|
|
115 |
with gr.Row():
|
116 |
"""output = [gr.Image(label=m, min_width=170, height=170) for m in default_models]
|
117 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]"""
|
118 |
-
choices=models_test[0][0]
|
119 |
output = [gr.Image(label=m, min_width=170, height=170) for m in choices]
|
120 |
current_models = [gr.Textbox(m, visible=False) for m in choices]
|
121 |
|
@@ -139,7 +138,7 @@ def make_me():
|
|
139 |
txt_input_p = gr.Textbox(label='test', lines=1, width=300, max_height=100)
|
140 |
|
141 |
test_button = gr.Button('test', width=30, height=10)
|
142 |
-
test_button.click(test_pass,txt_input_p
|
143 |
with gr.Row():
|
144 |
gr.HTML("""
|
145 |
<div class="footer">
|
|
|
89 |
if test_pass.value==p:
|
90 |
test_p=True
|
91 |
print(test_p)
|
|
|
92 |
|
93 |
def gen_fn(model_str, prompt):
|
94 |
if model_str == 'NA':
|
|
|
114 |
with gr.Row():
|
115 |
"""output = [gr.Image(label=m, min_width=170, height=170) for m in default_models]
|
116 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]"""
|
117 |
+
choices=[models_test[0][0]]
|
118 |
output = [gr.Image(label=m, min_width=170, height=170) for m in choices]
|
119 |
current_models = [gr.Textbox(m, visible=False) for m in choices]
|
120 |
|
|
|
138 |
txt_input_p = gr.Textbox(label='test', lines=1, width=300, max_height=100)
|
139 |
|
140 |
test_button = gr.Button('test', width=30, height=10)
|
141 |
+
test_button.click(test_pass,txt_input_p)
|
142 |
with gr.Row():
|
143 |
gr.HTML("""
|
144 |
<div class="footer">
|