Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,12 +44,12 @@ chat_interface = gr.Interface(
|
|
| 44 |
gr.State() # State input to hold the history
|
| 45 |
],
|
| 46 |
outputs=[
|
| 47 |
-
gr.Textbox(label="OpenAI Response"
|
| 48 |
-
gr.State(
|
| 49 |
],
|
| 50 |
title="OpenAI Chatbot",
|
| 51 |
description="Talk to a bot powered by OpenAI GPT-3.",
|
| 52 |
-
theme=theme
|
| 53 |
)
|
| 54 |
|
| 55 |
if __name__ == "__main__":
|
|
|
|
| 44 |
gr.State() # State input to hold the history
|
| 45 |
],
|
| 46 |
outputs=[
|
| 47 |
+
gr.Textbox(label="OpenAI Response"), # Textbox for the chatbot's response
|
| 48 |
+
gr.State() # State output to pass the history back to the function
|
| 49 |
],
|
| 50 |
title="OpenAI Chatbot",
|
| 51 |
description="Talk to a bot powered by OpenAI GPT-3.",
|
| 52 |
+
theme=theme # Apply the custom theme here
|
| 53 |
)
|
| 54 |
|
| 55 |
if __name__ == "__main__":
|