Geevarghese George commited on
Commit
77426d9
·
1 Parent(s): 74af549
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -26,6 +26,7 @@ from src.upgrade_advisor.misc import (
26
  _monkeypatch_gradio_save_history,
27
  get_example_questions,
28
  )
 
29
 
30
  logger = logging.getLogger(__name__)
31
  logger.setLevel(logging.INFO)
@@ -189,12 +190,11 @@ def main():
189
  # Gradio chat interface state to persist uploaded files
190
  files_state = gr.State([])
191
  example_questions = get_example_questions(n=4)
 
192
 
193
- # TODO: use the gr.Blocks to add login blocks
194
- # Add login with huggingface hub to cache token: https://www.gradio.app/guides/sharing-your-app#o-auth-login-via-hugging-face
195
- # use a limited token with read-only access to public repoos only
196
- # (GITHUB_PAT)
197
  # deploy to hf spaces with mcp server enabled
 
198
  with MCPClient(
199
  server_parameters=[
200
  gh_mcp_params,
@@ -260,9 +260,8 @@ def main():
260
  save_history=True,
261
  examples=example_questions,
262
  stop_btn=True,
263
- # theme=christmas,
264
  )
265
- demo.launch(mcp_server=True, share=False)
266
 
267
  finally:
268
  logger.info("Cleaning up MCP client resources")
 
26
  _monkeypatch_gradio_save_history,
27
  get_example_questions,
28
  )
29
+ from src.upgrade_advisor.theme import Christmas
30
 
31
  logger = logging.getLogger(__name__)
32
  logger.setLevel(logging.INFO)
 
190
  # Gradio chat interface state to persist uploaded files
191
  files_state = gr.State([])
192
  example_questions = get_example_questions(n=4)
193
+ christmas = Christmas()
194
 
195
+ # TODOs:
 
 
 
196
  # deploy to hf spaces with mcp server enabled
197
+ # Fix the theme issues (solid background for textbox )
198
  with MCPClient(
199
  server_parameters=[
200
  gh_mcp_params,
 
260
  save_history=True,
261
  examples=example_questions,
262
  stop_btn=True,
 
263
  )
264
+ demo.launch(mcp_server=True, share=False, theme=christmas)
265
 
266
  finally:
267
  logger.info("Cleaning up MCP client resources")