Spaces:
Runtime error
Runtime error
Fix indentation error in necrofusion_agent.py
Browse files
modules/necrofusion_agent.py
CHANGED
|
@@ -34,8 +34,6 @@ def necrofusion_agent_ui():
|
|
| 34 |
msg = gr.Textbox()
|
| 35 |
clear = gr.Button("Clear")
|
| 36 |
|
| 37 |
-
import time
|
| 38 |
-
|
| 39 |
def respond(message, chat_history):
|
| 40 |
bot_message = ""
|
| 41 |
if "generate" in message.lower() and "image" in message.lower():
|
|
@@ -68,6 +66,5 @@ import time
|
|
| 68 |
chat_history[-1] = (message, bot_message[:i+1])
|
| 69 |
yield "", chat_history
|
| 70 |
|
| 71 |
-
|
| 72 |
msg.submit(respond, [msg, chatbot], [msg, chatbot])
|
| 73 |
clear.click(lambda: None, None, chatbot, queue=False)
|
|
|
|
| 34 |
msg = gr.Textbox()
|
| 35 |
clear = gr.Button("Clear")
|
| 36 |
|
|
|
|
|
|
|
| 37 |
def respond(message, chat_history):
|
| 38 |
bot_message = ""
|
| 39 |
if "generate" in message.lower() and "image" in message.lower():
|
|
|
|
| 66 |
chat_history[-1] = (message, bot_message[:i+1])
|
| 67 |
yield "", chat_history
|
| 68 |
|
|
|
|
| 69 |
msg.submit(respond, [msg, chatbot], [msg, chatbot])
|
| 70 |
clear.click(lambda: None, None, chatbot, queue=False)
|