We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89fd807 commit 2608088Copy full SHA for 2608088
gui/app.py
@@ -282,13 +282,11 @@ def f(*components):
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)
+def main():
+ with gr.Blocks(theme="default") as demo:
+ _ = AppInterface(demo)
+ demo.launch(debug=True)
291
292
293
if __name__ == "__main__":
294
- app = App()
+ main()
0 commit comments