Skip to content

Commit 7770380

Browse files
committed
refactor(gui): launch code
1 parent 4f6ff44 commit 7770380

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

gui/app.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,11 @@ def f(*components):
282282
return f
283283

284284

285-
class App:
286-
def __init__(self, theme="default") -> None:
287-
with gr.Blocks(theme=theme) as demo:
288-
self.interface = AppInterface(demo)
289-
290-
demo.launch(debug=True)
285+
def main():
286+
with gr.Blocks(theme="default") as demo:
287+
_ = AppInterface(demo)
288+
demo.launch(debug=True)
291289

292290

293291
if __name__ == "__main__":
294-
app = App()
292+
main()

0 commit comments

Comments
 (0)