Update app.py
Browse files
app.py
CHANGED
@@ -163,7 +163,7 @@ def query_router(query, method, retriever):
|
|
163 |
|
164 |
# Function to reset input and output
|
165 |
def reset_query_field():
|
166 |
-
return "" # Reset only the query input
|
167 |
|
168 |
# Function to update the clock
|
169 |
def update_datetime():
|
@@ -289,7 +289,8 @@ def main():
|
|
289 |
)
|
290 |
|
291 |
# Reset only the query input
|
292 |
-
reset_button.click(reset_query_field, inputs=[], outputs=[query_input])
|
|
|
293 |
|
294 |
# Update date and time on submission
|
295 |
submit_button.click(
|
|
|
163 |
|
164 |
# Function to reset input and output
|
165 |
def reset_query_field():
|
166 |
+
return "","" # Reset only the query input
|
167 |
|
168 |
# Function to update the clock
|
169 |
def update_datetime():
|
|
|
289 |
)
|
290 |
|
291 |
# Reset only the query input
|
292 |
+
reset_button.click(reset_query_field, inputs=[], outputs=[query_input,output_box])
|
293 |
+
|
294 |
|
295 |
# Update date and time on submission
|
296 |
submit_button.click(
|