elyxlz
commited on
Commit
·
e3cacda
1
Parent(s):
d68a433
change launch
Browse files
app.py
CHANGED
@@ -82,23 +82,8 @@ class ChatbotAgentGradio():
|
|
82 |
message.submit(self.chat, inputs=[message, state], outputs=[chatbot, state])
|
83 |
|
84 |
|
85 |
-
block.launch(
|
86 |
|
87 |
|
88 |
-
|
89 |
-
|
90 |
-
config = OmegaConf.load(f'./config/{config}.yaml')
|
91 |
-
chatbot = hydra.utils.instantiate(config.model, _convert_="partial")
|
92 |
-
|
93 |
-
while True:
|
94 |
-
inp = input("\nUser: ")
|
95 |
-
print(chatbot.run(inp))
|
96 |
-
if __name__ == '__main__':
|
97 |
-
|
98 |
-
#simple('conf_0.1')
|
99 |
-
app = ChatbotAgentGradio('conf_0.1')
|
100 |
-
app.launch_app()
|
101 |
-
|
102 |
-
#QA = QA(store, k=1)
|
103 |
-
#app = QAGradio(QA)
|
104 |
-
#app.launch_app()
|
|
|
82 |
message.submit(self.chat, inputs=[message, state], outputs=[chatbot, state])
|
83 |
|
84 |
|
85 |
+
block.launch()#, server_name='192.168.0.73', )
|
86 |
|
87 |
|
88 |
+
app = ChatbotAgentGradio('conf_0.1')
|
89 |
+
app.launch_app()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|