Update app.py
Browse files
app.py
CHANGED
|
@@ -164,7 +164,10 @@ with gr.Blocks(css="body {background-color: #f7f7f7;}") as demo:
|
|
| 164 |
gr.Markdown("Think of a person, place, or thing. I'll try to guess it in 20 questions or less!")
|
| 165 |
|
| 166 |
with gr.Row():
|
| 167 |
-
|
|
|
|
|
|
|
|
|
|
| 168 |
|
| 169 |
|
| 170 |
with gr.Row():
|
|
@@ -173,11 +176,11 @@ with gr.Blocks(css="body {background-color: #f7f7f7;}") as demo:
|
|
| 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")
|
|
|
|
| 176 |
transcribed_text = gr.Textbox(label="✍️ Answer Text", interactive=True)
|
| 177 |
submit_btn = gr.Button("✅ Submit Answer", elem_id="submit-btn")
|
| 178 |
|
| 179 |
-
|
| 180 |
-
consult_output = gr.Textbox(label="💡 Consult Hint", visible=False)
|
| 181 |
|
| 182 |
with gr.Row():
|
| 183 |
consult_btn = gr.Button("💬 Toggle Consult Mode", elem_id="consult-btn")
|
|
|
|
| 164 |
gr.Markdown("Think of a person, place, or thing. I'll try to guess it in 20 questions or less!")
|
| 165 |
|
| 166 |
with gr.Row():
|
| 167 |
+
|
| 168 |
+
with gr.Column():
|
| 169 |
+
start_btn = gr.Button("🚀 Start Game", elem_id="start-btn")
|
| 170 |
+
consult_output = gr.Textbox(label="💡 Consult Hint", visible=False)
|
| 171 |
|
| 172 |
|
| 173 |
with gr.Row():
|
|
|
|
| 176 |
language = gr.Dropdown(["English", "Urdu"], label="Audio Language", value="English")
|
| 177 |
audio_input = gr.Audio(label="🎤 Answer via Microphone", type="numpy", sources=["microphone"])
|
| 178 |
transcribe_btn = gr.Button("📝 Transcribe Audio", elem_id="transcribe-btn")
|
| 179 |
+
with gr.Column():
|
| 180 |
transcribed_text = gr.Textbox(label="✍️ Answer Text", interactive=True)
|
| 181 |
submit_btn = gr.Button("✅ Submit Answer", elem_id="submit-btn")
|
| 182 |
|
| 183 |
+
|
|
|
|
| 184 |
|
| 185 |
with gr.Row():
|
| 186 |
consult_btn = gr.Button("💬 Toggle Consult Mode", elem_id="consult-btn")
|