Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -384,14 +384,14 @@ with gr.Blocks() as iface:
|
|
| 384 |
# Other output components...
|
| 385 |
|
| 386 |
# Specify inputs and events
|
| 387 |
-
inputs = [input_text,
|
| 388 |
-
events = [output_text,
|
| 389 |
|
| 390 |
iface.load(inputs, events)
|
| 391 |
def log_messages(inputs, outputs):
|
| 392 |
logger(f'Input: {inputs}, Output: {outputs}')
|
| 393 |
|
| 394 |
-
@gr.Interface.load(inputs,
|
| 395 |
def log_messages(inputs, outputs):
|
| 396 |
logger(f'Input: {inputs}, Output: {outputs}')
|
| 397 |
|
|
|
|
| 384 |
# Other output components...
|
| 385 |
|
| 386 |
# Specify inputs and events
|
| 387 |
+
inputs = [input_text, agents] # List of input components
|
| 388 |
+
events = [output_text, agents] # List of output components
|
| 389 |
|
| 390 |
iface.load(inputs, events)
|
| 391 |
def log_messages(inputs, outputs):
|
| 392 |
logger(f'Input: {inputs}, Output: {outputs}')
|
| 393 |
|
| 394 |
+
@gr.Interface.load(inputs, agents)
|
| 395 |
def log_messages(inputs, outputs):
|
| 396 |
logger(f'Input: {inputs}, Output: {outputs}')
|
| 397 |
|