Suku0 commited on
Commit
94f5c11
1 Parent(s): 78b4546

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- app = gr.ChatInterface(
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
- app.launch()
 
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()