Spaces:
Running
Running
MilesCranmer
commited on
refactor(gui): launch code
Browse files- 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 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
demo.launch(debug=True)
|
291 |
|
292 |
|
293 |
if __name__ == "__main__":
|
294 |
-
|
|
|
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()
|