gabykim commited on
Commit
3bb89a4
·
1 Parent(s): 6b5ac9a

[BugFix] shouldn't name it gradio.py

Browse files
src/know_lang_bot/chat_bot/__main__.py CHANGED
@@ -1,4 +1,4 @@
1
- from know_lang_bot.chat_bot.chat_config import ChatAppConfig, chat_app_config
2
  from know_lang_bot.chat_bot.chat_graph import process_chat
3
  import chromadb
4
  import asyncio
 
1
+ from know_lang_bot.chat_bot.chat_config import chat_app_config
2
  from know_lang_bot.chat_bot.chat_graph import process_chat
3
  import chromadb
4
  import asyncio
src/know_lang_bot/chat_bot/chat_interface.py CHANGED
@@ -45,7 +45,9 @@ class CodeQAChatInterface:
45
  placeholder="What does the CodeParser class do?",
46
  container=False
47
  )
48
- clear = gr.ClearButton([msg, chatbot])
 
 
49
 
50
  with gr.Column(scale=1):
51
  references = gr.Markdown(
@@ -65,6 +67,7 @@ class CodeQAChatInterface:
65
  }
66
 
67
  msg.submit(respond, [msg, chatbot], [msg, chatbot])
 
68
  clear.click(lambda: [], None, references)
69
 
70
  return interface
 
45
  placeholder="What does the CodeParser class do?",
46
  container=False
47
  )
48
+ with gr.Row():
49
+ submit = gr.Button("Submit")
50
+ clear = gr.ClearButton([msg, chatbot])
51
 
52
  with gr.Column(scale=1):
53
  references = gr.Markdown(
 
67
  }
68
 
69
  msg.submit(respond, [msg, chatbot], [msg, chatbot])
70
+ submit.click(respond, [msg, chatbot], [msg, chatbot])
71
  clear.click(lambda: [], None, references)
72
 
73
  return interface
src/know_lang_bot/chat_bot/{gradio.py → gradio_demo.py} RENAMED
File without changes