Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -372,9 +372,7 @@ def generate(
|
|
| 372 |
|
| 373 |
return output
|
| 374 |
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
@gr.Callback(inputs.update, events.outputs)
|
| 378 |
def log_messages(inputs, outputs):
|
| 379 |
logger(f'Input: {inputs}, Output: {outputs}')
|
| 380 |
|
|
@@ -498,6 +496,6 @@ with iface:
|
|
| 498 |
|
| 499 |
iface.load(fn=get_helpful_tip, inputs=agent_dropdown, outputs=ui.info)
|
| 500 |
iface.load(fn=update_sys_prompt, inputs=agent_dropdown, outputs=sys_prompt)
|
| 501 |
-
|
| 502 |
-
|
| 503 |
iface.launch()
|
|
|
|
| 372 |
|
| 373 |
return output
|
| 374 |
|
| 375 |
+
@gr.Interface.load(inputs.update, events.outputs)
|
|
|
|
|
|
|
| 376 |
def log_messages(inputs, outputs):
|
| 377 |
logger(f'Input: {inputs}, Output: {outputs}')
|
| 378 |
|
|
|
|
| 496 |
|
| 497 |
iface.load(fn=get_helpful_tip, inputs=agent_dropdown, outputs=ui.info)
|
| 498 |
iface.load(fn=update_sys_prompt, inputs=agent_dropdown, outputs=sys_prompt)
|
| 499 |
+
iface.load(fn=log_messages, input_type='state', event_type='save_model')
|
| 500 |
+
|
| 501 |
iface.launch()
|