MilesCranmer commited on
Commit
2608088
·
unverified ·
1 Parent(s): 89fd807

refactor(gui): launch code

Browse files
Files changed (1) hide show
  1. gui/app.py +5 -7
gui/app.py CHANGED
@@ -282,13 +282,11 @@ def create_processing_function(interface: AppInterface, ignore=[]):
282
  return f
283
 
284
 
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)
291
 
292
 
293
  if __name__ == "__main__":
294
- app = App()
 
282
  return f
283
 
284
 
285
+ def main():
286
+ with gr.Blocks(theme="default") as demo:
287
+ _ = AppInterface(demo)
288
+ demo.launch(debug=True)
 
 
289
 
290
 
291
  if __name__ == "__main__":
292
+ main()