Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -91,12 +91,21 @@ def run_tutor(audio_file):
|
|
91 |
# --- Gradio Interface ---
|
92 |
with gr.Blocks() as demo:
|
93 |
gr.Markdown("# Adaptive Language Tutor (Arabic)")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
with gr.Row():
|
95 |
question_audio_output = gr.Audio(label="Question")
|
96 |
-
|
97 |
with gr.Row():
|
98 |
feedback_audio_output = gr.Audio(label="Feedback")
|
99 |
feedback_text_output = gr.Textbox(label="Feedback")
|
|
|
100 |
mic_input = gr.Audio(label="Speak Your Answer")
|
101 |
generate_button = gr.Button("Generate Question")
|
102 |
|
@@ -106,6 +115,7 @@ with gr.Blocks() as demo:
|
|
106 |
outputs=[question_audio_output, question_text_output, feedback_audio_output, feedback_text_output]
|
107 |
)
|
108 |
|
|
|
109 |
|
110 |
#
|
111 |
# question_text_output = gr.Textbox(label="Question Text")
|
|
|
91 |
# --- Gradio Interface ---
|
92 |
with gr.Blocks() as demo:
|
93 |
gr.Markdown("# Adaptive Language Tutor (Arabic)")
|
94 |
+
# with gr.Row():
|
95 |
+
# question_audio_output = gr.Audio(label="Question")
|
96 |
+
# feedback_audio_output = gr.Audio(label="Feedback")
|
97 |
+
# with gr.Row():
|
98 |
+
# feedback_audio_output = gr.Audio(label="Feedback")
|
99 |
+
# feedback_text_output = gr.Textbox(label="Feedback")
|
100 |
+
|
101 |
+
|
102 |
with gr.Row():
|
103 |
question_audio_output = gr.Audio(label="Question")
|
104 |
+
question_text_output = gr.Textbox(label="Question Text")
|
105 |
with gr.Row():
|
106 |
feedback_audio_output = gr.Audio(label="Feedback")
|
107 |
feedback_text_output = gr.Textbox(label="Feedback")
|
108 |
+
|
109 |
mic_input = gr.Audio(label="Speak Your Answer")
|
110 |
generate_button = gr.Button("Generate Question")
|
111 |
|
|
|
115 |
outputs=[question_audio_output, question_text_output, feedback_audio_output, feedback_text_output]
|
116 |
)
|
117 |
|
118 |
+
NameError: name 'question_text_output' is not defined. Did you mean: 'question_audio_output'?
|
119 |
|
120 |
#
|
121 |
# question_text_output = gr.Textbox(label="Question Text")
|