iisadia commited on
Commit
a15329b
·
verified ·
1 Parent(s): 0d5c991

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -276,6 +276,7 @@ def ask_help_agent(query):
276
 
277
 
278
  def show_techniques_modal():
 
279
  st.markdown("""
280
  <div class="info-modal-backdrop" id="infoBackdrop">
281
  <div class="info-modal">
@@ -288,16 +289,16 @@ def show_techniques_modal():
288
  <li><strong>Groq Llama 3.3-70B</strong> - For generating strategic questions and final guesses</li>
289
  <li><strong>Mistral Tiny</strong> - Powers the help chat assistant</li>
290
  <li><strong>OpenAI Whisper</strong> - Converts speech to text in real-time</li>
291
- <li><strong>Hard Prompt Tuning</strong> - Carefully engineered prompts to optimize model performance for the guessing game</li>
292
  </ul>
293
  </div>
294
 
295
  <div class="tech-item">
296
  <div class="tech-title"><i class="fas fa-exclamation-triangle"></i> Known Limitations</div>
297
  <ul style="color: #64748B; padding-left: 1.2rem;">
298
- <li>Voice input may take 5-10 seconds to process a sentence (like single-word categories)</li>
299
- <li>But voice processing for single words (like "yes", "no", "place") may take 10-20 seconds </li>
300
- <li><strong>Language Support</strong> - While Whisper understands and write Urdu, the game currently only supports English responses</li>
301
  </ul>
302
  </div>
303
 
@@ -310,10 +311,10 @@ def show_techniques_modal():
310
  </div>
311
  </div>
312
  <script>
313
- // Hide modal by default
314
- document.getElementById('infoBackdrop').style.display = 'none';
315
  </script>
316
  """, unsafe_allow_html=True)
 
317
  ######################################
318
  # Main Game Logic with Voice Integration
319
  ######################################
 
276
 
277
 
278
  def show_techniques_modal():
279
+ # Use st.markdown with unsafe_allow_html=True
280
  st.markdown("""
281
  <div class="info-modal-backdrop" id="infoBackdrop">
282
  <div class="info-modal">
 
289
  <li><strong>Groq Llama 3.3-70B</strong> - For generating strategic questions and final guesses</li>
290
  <li><strong>Mistral Tiny</strong> - Powers the help chat assistant</li>
291
  <li><strong>OpenAI Whisper</strong> - Converts speech to text in real-time</li>
292
+ <li><strong>Hard Prompt Tuning</strong> - Carefully engineered prompts to optimize model performance</li>
293
  </ul>
294
  </div>
295
 
296
  <div class="tech-item">
297
  <div class="tech-title"><i class="fas fa-exclamation-triangle"></i> Known Limitations</div>
298
  <ul style="color: #64748B; padding-left: 1.2rem;">
299
+ <li>Voice input may take 5-10 seconds to process sentences</li>
300
+ <li>Single words (like "yes", "no") may take 10-20 seconds</li>
301
+ <li><strong>Language Support</strong> - While Whisper understands Urdu, the game only supports English</li>
302
  </ul>
303
  </div>
304
 
 
311
  </div>
312
  </div>
313
  <script>
314
+ document.getElementById('infoBackdrop').style.display = 'block';
 
315
  </script>
316
  """, unsafe_allow_html=True)
317
+
318
  ######################################
319
  # Main Game Logic with Voice Integration
320
  ######################################