Skip to content

Commit

Permalink
refactor(gui): launch code
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Apr 17, 2024
1 parent 4f6ff44 commit 7770380
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,11 @@ def f(*components):
return f


class App:
def __init__(self, theme="default") -> None:
with gr.Blocks(theme=theme) as demo:
self.interface = AppInterface(demo)

demo.launch(debug=True)
def main():
with gr.Blocks(theme="default") as demo:
_ = AppInterface(demo)
demo.launch(debug=True)


if __name__ == "__main__":
app = App()
main()

0 comments on commit 7770380

Please sign in to comment.