Update app.py
Browse files
app.py
CHANGED
|
@@ -168,8 +168,12 @@ with gr.Blocks(css="body {background-color: #f7f7f7;}") as demo:
|
|
| 168 |
consult_btn = gr.Button("💬 Toggle Consult Mode", elem_id="consult-btn")
|
| 169 |
consult_status = gr.Textbox(label="Consult Mode", interactive=False)
|
| 170 |
|
|
|
|
|
|
|
|
|
|
| 171 |
with gr.Row():
|
| 172 |
with gr.Column():
|
|
|
|
| 173 |
language = gr.Dropdown(["English", "Urdu"], label="Audio Language", value="English")
|
| 174 |
audio_input = gr.Audio(label="🎤 Answer via Microphone", type="numpy", sources=["microphone"])
|
| 175 |
transcribe_btn = gr.Button("📝 Transcribe Audio", elem_id="transcribe-btn")
|
|
@@ -177,7 +181,6 @@ with gr.Blocks(css="body {background-color: #f7f7f7;}") as demo:
|
|
| 177 |
submit_btn = gr.Button("✅ Submit Answer", elem_id="submit-btn")
|
| 178 |
|
| 179 |
with gr.Column():
|
| 180 |
-
game_output = gr.Textbox(label="🎲 Game Progress", interactive=False)
|
| 181 |
consult_output = gr.Textbox(label="💡 Consult Hint", visible=False)
|
| 182 |
|
| 183 |
# Consultant Interaction Section
|
|
|
|
| 168 |
consult_btn = gr.Button("💬 Toggle Consult Mode", elem_id="consult-btn")
|
| 169 |
consult_status = gr.Textbox(label="Consult Mode", interactive=False)
|
| 170 |
|
| 171 |
+
with gr.Row():
|
| 172 |
+
consult_status = gr.Textbox(label="Consult Mode", interactive=False)
|
| 173 |
+
|
| 174 |
with gr.Row():
|
| 175 |
with gr.Column():
|
| 176 |
+
game_output = gr.Textbox(label="🎲 Game Progress", interactive=False)
|
| 177 |
language = gr.Dropdown(["English", "Urdu"], label="Audio Language", value="English")
|
| 178 |
audio_input = gr.Audio(label="🎤 Answer via Microphone", type="numpy", sources=["microphone"])
|
| 179 |
transcribe_btn = gr.Button("📝 Transcribe Audio", elem_id="transcribe-btn")
|
|
|
|
| 181 |
submit_btn = gr.Button("✅ Submit Answer", elem_id="submit-btn")
|
| 182 |
|
| 183 |
with gr.Column():
|
|
|
|
| 184 |
consult_output = gr.Textbox(label="💡 Consult Hint", visible=False)
|
| 185 |
|
| 186 |
# Consultant Interaction Section
|