Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,30 +36,17 @@ def on_reset_button_click():
|
|
36 |
llm_svc.store={}
|
37 |
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
if __name__ == "__main__":
|
49 |
-
demo.launch()
|
50 |
-
|
51 |
-
|
52 |
-
# # Define the main block
|
53 |
-
# if __name__ == '__main__':
|
54 |
-
# logging.info("Starting AIVIz Bot")
|
55 |
-
|
56 |
-
# with gr.Blocks() as demo:
|
57 |
-
# # Create the ChatInterface
|
58 |
-
# chat_interface = gr.ChatInterface(fn=respond)
|
59 |
-
# # Create a button and bind the reset function to it
|
60 |
-
# reset_button = gr.Button("Reset Chat Memory Cache")
|
61 |
|
62 |
-
|
63 |
|
64 |
-
#
|
65 |
-
|
|
|
36 |
llm_svc.store={}
|
37 |
|
38 |
|
39 |
+
# Define the main block
|
40 |
+
if __name__ == '__main__':
|
41 |
+
logging.info("Starting AIVIz Bot")
|
42 |
+
|
43 |
+
with gr.Blocks() as demo:
|
44 |
+
# Create the ChatInterface
|
45 |
+
chat_interface = gr.ChatInterface(fn=respond)
|
46 |
+
# Create a button and bind the reset function to it
|
47 |
+
reset_button = gr.Button("Reset Chat Memory Cache")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
+
reset_button.click(on_reset_button_click)
|
50 |
|
51 |
+
# Launch the interface with a shareable link
|
52 |
+
demo.launch(share=True)
|