Diomedes Git commited on
Commit
1868ae1
·
1 Parent(s): 71f5dac

Fixed import paths: removed gradio __init__.py, fixed all src. imports, removed theme parameter

Browse files
app.py CHANGED
@@ -1,2 +1,2 @@
1
- from src.gradio import my_gradio_app
2
  my_gradio_app.launch()
 
1
+ from src.gradio.app import my_gradio_app
2
  my_gradio_app.launch()
src/cluas_mcp/academic/arxiv.py CHANGED
@@ -3,7 +3,7 @@ from typing import List, Dict, Any, Optional
3
  from urllib.parse import quote_plus
4
  import feedparser
5
 
6
- from cluas_mcp.domain.keywords import CORVID_KEYWORDS
7
 
8
 
9
  logger = logging.getLogger(__name__)
 
3
  from urllib.parse import quote_plus
4
  import feedparser
5
 
6
+ from src.cluas_mcp.domain.keywords import CORVID_KEYWORDS
7
 
8
 
9
  logger = logging.getLogger(__name__)
src/cluas_mcp/academic/pubmed.py CHANGED
@@ -7,8 +7,8 @@ import xml.etree.ElementTree as ET
7
  import urllib.parse
8
  from typing import List, Optional, Dict, Any, Tuple
9
 
10
- from cluas_mcp.common.http import fetch_with_retry
11
- from cluas_mcp.domain.keywords import CORVID_KEYWORDS
12
 
13
  logger = logging.getLogger(__name__)
14
 
 
7
  import urllib.parse
8
  from typing import List, Optional, Dict, Any, Tuple
9
 
10
+ from src.cluas_mcp.common.http import fetch_with_retry
11
+ from src.cluas_mcp.domain.keywords import CORVID_KEYWORDS
12
 
13
  logger = logging.getLogger(__name__)
14
 
src/cluas_mcp/academic/semantic_scholar.py CHANGED
@@ -1,6 +1,6 @@
1
  import logging
2
  from typing import List, Dict, Any
3
- from cluas_mcp.common.http import fetch_with_retry
4
 
5
  logger = logging.getLogger(__name__)
6
 
 
1
  import logging
2
  from typing import List, Dict, Any
3
+ from src.cluas_mcp.common.http import fetch_with_retry
4
 
5
  logger = logging.getLogger(__name__)
6
 
src/cluas_mcp/academic/thing.py CHANGED
@@ -1,2 +1,2 @@
1
- from cluas_mcp.academic.pubmed import PubMedClient
2
  print(hasattr(PubMedClient, "fetch_articles"))
 
1
+ from src.cluas_mcp.academic.pubmed import PubMedClient
2
  print(hasattr(PubMedClient, "fetch_articles"))
src/gradio/__init__.py DELETED
@@ -1,4 +0,0 @@
1
- from src.gradio.app import my_gradio_app
2
-
3
- __all__ = ["my_gradio_app"]
4
-
 
 
 
 
 
src/gradio/app.py CHANGED
@@ -88,7 +88,7 @@ def chat_fn(message: str, history: List[Tuple[str, str]]) -> List[Tuple[str, str
88
  return history
89
 
90
  # Create Gradio interface
91
- with gr.Blocks(title="Cluas - Corvid Council", theme=gr.themes.Soft()) as demo:
92
  gr.Markdown("""
93
  # 🐦‍⬛ Cluas - Corvid Council
94
  ## *A gathering of guides, a council of counsels*
 
88
  return history
89
 
90
  # Create Gradio interface
91
+ with gr.Blocks(title="Cluas - Corvid Council") as demo:
92
  gr.Markdown("""
93
  # 🐦‍⬛ Cluas - Corvid Council
94
  ## *A gathering of guides, a council of counsels*