acecalisto3 commited on
Commit
cc9992d
·
verified ·
1 Parent(s): 7fc561c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -927,7 +927,6 @@ def create_ui(manager: IssueManager):
927
  # Replace the existing code_edit_component definition with:
928
  code_edit_component = code_editor(
929
  value={"placeholder.txt": "# Select an issue to load code."},
930
- language="python",
931
  key="code_editor"
932
  )
933
 
@@ -1009,7 +1008,7 @@ async def handle_issue_select(evt: gr.SelectData):
1009
  code_edit_component: gr.update(value={"error.txt": "# Error loading code\nPlease try again"}),
1010
  ai_output_display: gr.update(value="*Error processing selection*")
1011
  }
1012
-
1013
 
1014
 
1015
  issue_list.select(
@@ -1435,9 +1434,7 @@ if __name__ == "__main__":
1435
  # A common pattern if launch() blocks and doesn't run background async tasks:
1436
  asyncio_thread = threading.Thread(target=lambda: asyncio.run(main_async_tasks()), daemon=True)
1437
  asyncio_thread.start()
1438
- app.launch(...)
1439
 
1440
  logger.info("Gradio app launched. Webhook server running in background thread.")
1441
- # The asyncio tasks (WebSocket, broadcast) should be running via Gradio's event loop.
1442
-
1443
-
 
927
  # Replace the existing code_edit_component definition with:
928
  code_edit_component = code_editor(
929
  value={"placeholder.txt": "# Select an issue to load code."},
 
930
  key="code_editor"
931
  )
932
 
 
1008
  code_edit_component: gr.update(value={"error.txt": "# Error loading code\nPlease try again"}),
1009
  ai_output_display: gr.update(value="*Error processing selection*")
1010
  }
1011
+
1012
 
1013
 
1014
  issue_list.select(
 
1434
  # A common pattern if launch() blocks and doesn't run background async tasks:
1435
  asyncio_thread = threading.Thread(target=lambda: asyncio.run(main_async_tasks()), daemon=True)
1436
  asyncio_thread.start()
1437
+ app.launch(share=True, server_name="0.0.0.0", server_port=7860, favicon_path="https://huggingface.co/front/assets/huggingface_logo-noborder.svg")
1438
 
1439
  logger.info("Gradio app launched. Webhook server running in background thread.")
1440
+ # The asyncio tasks (WebSocket, broadcast) should be running via Gradio's event loop.