Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -147,14 +147,14 @@ def create_ui():
|
|
147 |
|
148 |
with gr.Column(scale=1):
|
149 |
info_output = gr.Textbox(label="Space 정보 및 요약", lines=16)
|
150 |
-
app_py_content = gr.Code(language="python", label="app.py 내용")
|
151 |
screenshot_output = gr.Image(type="pil", label="Live 화면", height=360, width=540)
|
|
|
152 |
|
153 |
for _, button, space in space_rows:
|
154 |
button.click(
|
155 |
lambda s=space: on_select(s),
|
156 |
inputs=[],
|
157 |
-
outputs=[info_output,
|
158 |
)
|
159 |
|
160 |
return demo
|
@@ -166,8 +166,11 @@ def create_ui():
|
|
166 |
|
167 |
if __name__ == "__main__":
|
168 |
try:
|
|
|
|
|
|
|
169 |
demo = create_ui()
|
170 |
demo.launch()
|
171 |
except Exception as e:
|
172 |
print(f"Error in main: {str(e)}")
|
173 |
-
print(traceback.format_exc())
|
|
|
147 |
|
148 |
with gr.Column(scale=1):
|
149 |
info_output = gr.Textbox(label="Space 정보 및 요약", lines=16)
|
|
|
150 |
screenshot_output = gr.Image(type="pil", label="Live 화면", height=360, width=540)
|
151 |
+
app_py_content = gr.Code(language="python", label="app.py 내용")
|
152 |
|
153 |
for _, button, space in space_rows:
|
154 |
button.click(
|
155 |
lambda s=space: on_select(s),
|
156 |
inputs=[],
|
157 |
+
outputs=[info_output, screenshot_output, app_py_content]
|
158 |
)
|
159 |
|
160 |
return demo
|
|
|
166 |
|
167 |
if __name__ == "__main__":
|
168 |
try:
|
169 |
+
import subprocess
|
170 |
+
subprocess.run(["playwright", "install", "chromium"], check=True)
|
171 |
+
|
172 |
demo = create_ui()
|
173 |
demo.launch()
|
174 |
except Exception as e:
|
175 |
print(f"Error in main: {str(e)}")
|
176 |
+
print(traceback.format_exc())
|