Pijush2023 commited on
Commit
4873ba5
·
verified ·
1 Parent(s): c1009f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -107,7 +107,8 @@ def generate_audio_elevenlabs(text):
107
  return None
108
 
109
  # Define the template for generating responses based on context
110
- template = """Use the following context to answer the question:
 
111
  Context:
112
  {context}
113
 
@@ -166,7 +167,7 @@ def process_audio_query(audio_input):
166
  # Create Gradio interface for audio input and output
167
  interface = gr.Interface(
168
  fn=process_audio_query,
169
- inputs=gr.Audio(source="microphone", type="numpy"),
170
  outputs="audio",
171
  live=True,
172
  description="Ask questions via audio and receive audio responses."
 
107
  return None
108
 
109
  # Define the template for generating responses based on context
110
+ template = """I am a guide for Birmingham, Alabama. I can provide recommendations and insights about the city, including events and activities.
111
+ Ask your question directly, and I'll provide a precise and quick,short and crisp response in a conversational way without any Greet.
112
  Context:
113
  {context}
114
 
 
167
  # Create Gradio interface for audio input and output
168
  interface = gr.Interface(
169
  fn=process_audio_query,
170
+ inputs=gr.Audio(sources="microphone", type="numpy"),
171
  outputs="audio",
172
  live=True,
173
  description="Ask questions via audio and receive audio responses."