Maybe that wasn't the issue.
Browse files
app.py
CHANGED
|
@@ -160,9 +160,9 @@ demo = gr.Blocks(css=css)
|
|
| 160 |
|
| 161 |
def changing():
|
| 162 |
# https://discuss.huggingface.co/t/how-to-programmatically-enable-or-disable-components/52350/4
|
| 163 |
-
return gr.Button.update(interactive=True), gr.Button.update(interactive=True)
|
| 164 |
# return gr.Button(interactive=True), gr.Button(interactive=True)
|
| 165 |
-
|
| 166 |
|
| 167 |
|
| 168 |
with demo:
|
|
|
|
| 160 |
|
| 161 |
def changing():
|
| 162 |
# https://discuss.huggingface.co/t/how-to-programmatically-enable-or-disable-components/52350/4
|
| 163 |
+
# return gr.Button.update(interactive=True), gr.Button.update(interactive=True)
|
| 164 |
# return gr.Button(interactive=True), gr.Button(interactive=True)
|
| 165 |
+
return gr.Button('Detect'), gr.Button('Detect')
|
| 166 |
|
| 167 |
|
| 168 |
with demo:
|