Shreyas094 commited on
Commit
28aa8ba
·
verified ·
1 Parent(s): 13ed9c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -418,16 +418,6 @@ def process_input(message, history, audio, model, temperature, num_calls, use_we
418
 
419
  # Modify the existing respond function to handle both PDF and web search
420
  def respond(message, history, model, temperature, num_calls, use_web_search, selected_docs):
421
- if audio is not None:
422
- # If audio input is provided, transcribe it
423
- try:
424
- transcribed_text = transcribe(audio)
425
- print(f"Transcribed audio: {transcribed_text}")
426
- message = transcribed_text
427
- except Exception as e:
428
- print(f"Error transcribing audio: {str(e)}")
429
- return f"Error transcribing audio: {str(e)}", history
430
-
431
  logging.info(f"User Query: {message}")
432
  logging.info(f"Model Used: {model}")
433
  logging.info(f"Selected Documents: {selected_docs}")
 
418
 
419
  # Modify the existing respond function to handle both PDF and web search
420
  def respond(message, history, model, temperature, num_calls, use_web_search, selected_docs):
 
 
 
 
 
 
 
 
 
 
421
  logging.info(f"User Query: {message}")
422
  logging.info(f"Model Used: {model}")
423
  logging.info(f"Selected Documents: {selected_docs}")