Yoxas commited on
Commit
98a3c08
·
verified ·
1 Parent(s): d1a2373

Update src/interface.py

Browse files
Files changed (1) hide show
  1. src/interface.py +1 -11
src/interface.py CHANGED
@@ -59,19 +59,9 @@ def create_demo():
59
  #NEW
60
  with gr.Column(scale=0.20):
61
  download_button = gr.Button('Download Conversation History')
62
-
63
- # Conversation History
64
- conversation_history = []
65
-
66
- # Event listeners
67
- submit_button.click(fn=update_chat_history, inputs=[text_input, chat_history], outputs=chat_history)
68
- download_button.click(fn=download_conversation_history, outputs="download")
69
  #NEW
70
 
71
-
72
-
73
-
74
  if __name__ == '__main__':
75
- demo, chatbot, show_img, text_input, submit_button, uploaded_pdf, slider_chunk_size,slider_overlap_percentage,slider_temp,slider_k, download_button = create_demo()
76
  demo.queue()
77
  demo.launch()
 
59
  #NEW
60
  with gr.Column(scale=0.20):
61
  download_button = gr.Button('Download Conversation History')
 
 
 
 
 
 
 
62
  #NEW
63
 
 
 
 
64
  if __name__ == '__main__':
65
+ demo, chatbot, show_img, text_input, submit_button, uploaded_pdf, slider_chunk_size,slider_overlap_percentage,slider_temp,slider_k = create_demo()
66
  demo.queue()
67
  demo.launch()