R-Kentaren commited on
Commit
ae81a99
·
verified ·
1 Parent(s): df180e7

fix: Gradio 6.x compat (default->value, theme to launch)

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. sonicoder/server/__init__.py +3 -4
app.py CHANGED
@@ -109,6 +109,7 @@ def main():
109
  server_name="0.0.0.0",
110
  server_port=port,
111
  share=False,
 
112
  )
113
 
114
 
 
109
  server_name="0.0.0.0",
110
  server_port=port,
111
  share=False,
112
+ theme=None,
113
  )
114
 
115
 
sonicoder/server/__init__.py CHANGED
@@ -269,7 +269,6 @@ def get_app():
269
  # Create the Gradio app
270
  app = gr.Blocks(
271
  title="SoniCoder v2 — AI Code Agent",
272
- theme=gr.themes.Soft(),
273
  )
274
 
275
  with app:
@@ -283,8 +282,8 @@ def get_app():
283
  fn=api_chat,
284
  inputs=[
285
  gr.Textbox(label="message"),
286
- gr.Textbox(label="session_id", default=""),
287
- gr.Textbox(label="image_url", default=""),
288
  ],
289
  outputs=[api_chat_output],
290
  api_name="chat",
@@ -366,7 +365,7 @@ def get_app():
366
 
367
  gr.Interface(
368
  fn=api_reset_session,
369
- inputs=[gr.Textbox(label="session_id", default="")],
370
  outputs=[api_json_output],
371
  api_name="reset_session",
372
  )
 
269
  # Create the Gradio app
270
  app = gr.Blocks(
271
  title="SoniCoder v2 — AI Code Agent",
 
272
  )
273
 
274
  with app:
 
282
  fn=api_chat,
283
  inputs=[
284
  gr.Textbox(label="message"),
285
+ gr.Textbox(label="session_id", value=""),
286
+ gr.Textbox(label="image_url", value=""),
287
  ],
288
  outputs=[api_chat_output],
289
  api_name="chat",
 
365
 
366
  gr.Interface(
367
  fn=api_reset_session,
368
+ inputs=[gr.Textbox(label="session_id", value="")],
369
  outputs=[api_json_output],
370
  api_name="reset_session",
371
  )