Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
46 |
|
47 |
return response["choices"][0]["text"]
|
48 |
|
49 |
-
|
50 |
respond,
|
51 |
additional_inputs=[
|
52 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
@@ -57,4 +57,4 @@ app = gr.ChatInterface(
|
|
57 |
)
|
58 |
|
59 |
if __name__ == "__main__":
|
60 |
-
|
|
|
46 |
|
47 |
return response["choices"][0]["text"]
|
48 |
|
49 |
+
demo = gr.ChatInterface(
|
50 |
respond,
|
51 |
additional_inputs=[
|
52 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
|
|
57 |
)
|
58 |
|
59 |
if __name__ == "__main__":
|
60 |
+
demo.launch()
|