nmarafo commited on
Commit
42dfe50
·
verified ·
1 Parent(s): ea26f1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -105,9 +105,10 @@ with gr.Blocks() as demo:
105
  I'm Norberto Martín Afonso. Follow me on [Twitter](https://twitter.com/norbertomartnaf) and [GitHub](https://github.com/nmarafo) for more updates and projects!
106
  """)
107
 
108
- gr.ChatInterface(
109
  chat_stream_completion,
110
  additional_inputs=[gr.Textbox("You are a helpful AI.", label="System Prompt")]
111
- ).queue().launch(server_name="0.0.0.0")
112
-
113
- demo.launch(debug=True)
 
 
105
  I'm Norberto Martín Afonso. Follow me on [Twitter](https://twitter.com/norbertomartnaf) and [GitHub](https://github.com/nmarafo) for more updates and projects!
106
  """)
107
 
108
+ chatbot = gr.ChatInterface(
109
  chat_stream_completion,
110
  additional_inputs=[gr.Textbox("You are a helpful AI.", label="System Prompt")]
111
+ )
112
+
113
+ demo.append(chatbot)
114
+ demo.launch(server_name="0.0.0.0", debug=True)