Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
45 |
outputs = [gr.components.Textbox(label="Reply"), gr.components.State()]
|
46 |
|
47 |
-
gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title="
|
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)
|