SAVAI123 commited on
Commit
a9e4d74
·
verified ·
1 Parent(s): 0d7a2fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -132,9 +132,9 @@ def general_query(query):
132
  try:
133
  # Define the prompt with date and time context
134
  prompt_template = """Current Date: {date}
135
- Current Time: {time}
136
- Answer the following query, using the current date and time information if relevant: {query}"""
137
-
138
  prompt = PromptTemplate.from_template(prompt_template)
139
 
140
  # Create an LLM Chain
@@ -172,10 +172,6 @@ def update_datetime():
172
  return date, time
173
 
174
 
175
-
176
-
177
-
178
-
179
  # Main function to create and launch the Gradio interface
180
  def main():
181
  # Initialize retriever
 
132
  try:
133
  # Define the prompt with date and time context
134
  prompt_template = """Current Date: {date}
135
+ Current Time: {time}
136
+ Answer the following query, using the current date and time information if relevant: {query}"""
137
+
138
  prompt = PromptTemplate.from_template(prompt_template)
139
 
140
  # Create an LLM Chain
 
172
  return date, time
173
 
174
 
 
 
 
 
175
  # Main function to create and launch the Gradio interface
176
  def main():
177
  # Initialize retriever