text-generation-webui/modules/gradio_hijack.py

10 lines
132 B
Python
Raw Normal View History

2024-03-05 11:32:28 +01:00
import gradio as gr
def Box(*args, **kwargs):
return gr.Blocks(*args, **kwargs)
if not hasattr(gr, 'Box'):
gr.Box = Box