Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,6 +54,11 @@ def generate_key():
|
|
54 |
|
55 |
return unique_key
|
56 |
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
##################### Process #####################
|
59 |
def main(conf):
|
@@ -81,6 +86,9 @@ def main(conf):
|
|
81 |
show_label=True)
|
82 |
create_unique_key.click(fn=generate_key,
|
83 |
outputs=output_unique_key)
|
|
|
|
|
|
|
84 |
|
85 |
### This should not be visible until key is generated.
|
86 |
gr.Markdown("### Upload Transcript and Necessary Context")
|
|
|
54 |
|
55 |
return unique_key
|
56 |
|
57 |
+
import gradio as gr
|
58 |
+
|
59 |
+
def b_clicked(o):
|
60 |
+
return gr.Button.update(interactive=True)
|
61 |
+
|
62 |
|
63 |
##################### Process #####################
|
64 |
def main(conf):
|
|
|
86 |
show_label=True)
|
87 |
create_unique_key.click(fn=generate_key,
|
88 |
outputs=output_unique_key)
|
89 |
+
create_unique_key.click(fn=b_clicked,
|
90 |
+
inputs=create_unique_key,
|
91 |
+
outputs=load_file)
|
92 |
|
93 |
### This should not be visible until key is generated.
|
94 |
gr.Markdown("### Upload Transcript and Necessary Context")
|