Commit ·
334dda2
1
Parent(s): e3a7cc3
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def predict(message, history, model_type):
|
|
| 101 |
return llm_response["output"]
|
| 102 |
|
| 103 |
# set up and run chat interface
|
| 104 |
-
|
| 105 |
fn=predict,
|
| 106 |
chatbot=gr.Chatbot(height=500),
|
| 107 |
textbox=gr.Textbox(placeholder="Ask me a question", container=False, scale=7),
|
|
@@ -122,4 +122,4 @@ cribl_agent = gr.ChatInterface(
|
|
| 122 |
|
| 123 |
# start UI
|
| 124 |
if __name__ == "__main__":
|
| 125 |
-
|
|
|
|
| 101 |
return llm_response["output"]
|
| 102 |
|
| 103 |
# set up and run chat interface
|
| 104 |
+
kellogg_agent = gr.ChatInterface(
|
| 105 |
fn=predict,
|
| 106 |
chatbot=gr.Chatbot(height=500),
|
| 107 |
textbox=gr.Textbox(placeholder="Ask me a question", container=False, scale=7),
|
|
|
|
| 122 |
|
| 123 |
# start UI
|
| 124 |
if __name__ == "__main__":
|
| 125 |
+
kellogg_agent.queue().launch(share=True)
|