Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -159,7 +159,7 @@ with gr.Blocks() as profile_interface:
|
|
159 |
assessment_id_input = gr.Textbox(
|
160 |
label="Assessment Object/Session ID",
|
161 |
placeholder="Enter ID here...",
|
162 |
-
required=True
|
163 |
)
|
164 |
lookup_btn = gr.Button("Lookup Profile", variant="primary")
|
165 |
clear_btn = gr.Button("Clear Results", variant="secondary")
|
@@ -170,9 +170,6 @@ with gr.Blocks() as profile_interface:
|
|
170 |
lookup_btn.click(lookup_profile, None, None)
|
171 |
clear_btn.click(lambda: profile_preview.update(""), status.update("", color=""))
|
172 |
assessment_id_input.change(lambda: status.update("", color=""), None, None)
|
173 |
-
|
174 |
-
# Load existing profiles on startup
|
175 |
-
load_profiles()
|
176 |
|
177 |
# Profile Interface
|
178 |
|
@@ -237,6 +234,10 @@ with gr.Blocks() as demo:
|
|
237 |
def clear_audio_input():
|
238 |
return None
|
239 |
"""
|
|
|
|
|
|
|
|
|
240 |
def update_task_input(task_input_choice):
|
241 |
if task_input_choice == "transcribe":
|
242 |
return gr.Textbox(label="Transcribed Output") #Audio(sources="upload", label="Audio: from file")
|
|
|
159 |
assessment_id_input = gr.Textbox(
|
160 |
label="Assessment Object/Session ID",
|
161 |
placeholder="Enter ID here...",
|
162 |
+
#required=True
|
163 |
)
|
164 |
lookup_btn = gr.Button("Lookup Profile", variant="primary")
|
165 |
clear_btn = gr.Button("Clear Results", variant="secondary")
|
|
|
170 |
lookup_btn.click(lookup_profile, None, None)
|
171 |
clear_btn.click(lambda: profile_preview.update(""), status.update("", color=""))
|
172 |
assessment_id_input.change(lambda: status.update("", color=""), None, None)
|
|
|
|
|
|
|
173 |
|
174 |
# Profile Interface
|
175 |
|
|
|
234 |
def clear_audio_input():
|
235 |
return None
|
236 |
"""
|
237 |
+
|
238 |
+
# Load existing profiles to Step 0: Profile tab page on startup
|
239 |
+
load_profiles()
|
240 |
+
|
241 |
def update_task_input(task_input_choice):
|
242 |
if task_input_choice == "transcribe":
|
243 |
return gr.Textbox(label="Transcribed Output") #Audio(sources="upload", label="Audio: from file")
|