HaoMingSun commited on
Commit
55e2f74
1 Parent(s): f30f844

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,9 +41,9 @@ def chatbot(input, conversation_history=[]):
41
  return "", conversation_history # If no input, return empty string and current conversation history
42
 
43
  # Gradio interface
44
- inputs = [gr.components.Textbox(lines=7, label="Chat with AI"), gr.components.State()]
45
  outputs = [gr.components.Textbox(label="Reply"), gr.components.State()]
46
 
47
- gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title="AI Chatbot",
48
  description="Ask anything you want",
49
  theme="Default").launch(share=True)
 
41
  return "", conversation_history # If no input, return empty string and current conversation history
42
 
43
  # Gradio interface
44
+ inputs = [gr.components.Textbox(lines=7, label="Chat with ChatGPT"), gr.components.State()]
45
  outputs = [gr.components.Textbox(label="Reply"), gr.components.State()]
46
 
47
+ gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title="ChatGPT-powered Chatbot",
48
  description="Ask anything you want",
49
  theme="Default").launch(share=True)