Médéric Hurier (Fmind) commited on
Commit
8ad46c1
1 Parent(s): a02c4f8

updated header

Browse files
Files changed (6) hide show
  1. app.py +4 -0
  2. requirements.txt +2 -0
  3. tasks/checks.py +3 -3
  4. tasks/formats.py +2 -2
  5. tasks/installs.py +3 -3
  6. tasks/runs.py +1 -1
app.py CHANGED
@@ -44,6 +44,10 @@ INTERFACE_EXAMPLES = [
44
  ]
45
  INTERFACE_DESCRIPTION = (
46
  "<center>"
 
 
 
 
47
  "Visit my website: <a href='https://fmind.dev'>https://fmind.dev</a>"
48
  " - Médéric HURIER (Fmind)"
49
  " - Freelancer: AI/FM/MLOps Engineer | Data Scientist | MLOps Community Organizer | MLflow Ambassador | Hacker | PhD"
 
44
  ]
45
  INTERFACE_DESCRIPTION = (
46
  "<center>"
47
+ "<strong>"
48
+ "Please migrate my new assistant website: <a href='https://assistant.fmind.dev/'>https://assistant.fmind.dev/</a>"
49
+ "</strong>"
50
+ "<br /><br />"
51
  "Visit my website: <a href='https://fmind.dev'>https://fmind.dev</a>"
52
  " - Médéric HURIER (Fmind)"
53
  " - Freelancer: AI/FM/MLOps Engineer | Data Scientist | MLOps Community Organizer | MLflow Ambassador | Hacker | PhD"
requirements.txt CHANGED
@@ -54,6 +54,7 @@ fsspec==2024.3.1
54
  # gradio-client
55
  # huggingface-hub
56
  gradio==4.29.0
 
57
  gradio-client==0.16.1
58
  # via gradio
59
  h11==0.14.0
@@ -111,6 +112,7 @@ numpy==1.26.4
111
  # matplotlib
112
  # pandas
113
  openai==1.28.0
 
114
  orjson==3.10.3
115
  # via
116
  # fastapi
 
54
  # gradio-client
55
  # huggingface-hub
56
  gradio==4.29.0
57
+ # via -r requirements-main.txt
58
  gradio-client==0.16.1
59
  # via gradio
60
  h11==0.14.0
 
112
  # matplotlib
113
  # pandas
114
  openai==1.28.0
115
+ # via -r requirements-main.txt
116
  orjson==3.10.3
117
  # via
118
  # fastapi
tasks/checks.py CHANGED
@@ -11,19 +11,19 @@ from invoke.context import Context
11
  @task
12
  def type(ctx: Context) -> None:
13
  """Check the types with mypy."""
14
- ctx.run("mypy *.py")
15
 
16
 
17
  @task
18
  def code(ctx: Context) -> None:
19
  """Check the codes with ruff check."""
20
- ctx.run("ruff check *.py")
21
 
22
 
23
  @task
24
  def format(ctx: Context) -> None:
25
  """Check the formats with ruff format."""
26
- ctx.run("ruff format --check *.py")
27
 
28
 
29
  @task(pre=[type, code, format], default=True)
 
11
  @task
12
  def type(ctx: Context) -> None:
13
  """Check the types with mypy."""
14
+ ctx.run(".venv/bin/mypy *.py")
15
 
16
 
17
  @task
18
  def code(ctx: Context) -> None:
19
  """Check the codes with ruff check."""
20
+ ctx.run(".venv/bin/ruff check *.py")
21
 
22
 
23
  @task
24
  def format(ctx: Context) -> None:
25
  """Check the formats with ruff format."""
26
+ ctx.run(".venv/bin/ruff format --check *.py")
27
 
28
 
29
  @task(pre=[type, code, format], default=True)
tasks/formats.py CHANGED
@@ -11,13 +11,13 @@ from invoke.context import Context
11
  @task
12
  def imports(ctx: Context) -> None:
13
  """Format code imports with ruff."""
14
- ctx.run("ruff check --select I --fix *.py")
15
 
16
 
17
  @task
18
  def sources(ctx: Context) -> None:
19
  """Format code sources with ruff."""
20
- ctx.run("ruff format *.py")
21
 
22
 
23
  @task(pre=[imports, sources], default=True)
 
11
  @task
12
  def imports(ctx: Context) -> None:
13
  """Format code imports with ruff."""
14
+ ctx.run(".venv/bin/ruff check --select I --fix *.py")
15
 
16
 
17
  @task
18
  def sources(ctx: Context) -> None:
19
  """Format code sources with ruff."""
20
+ ctx.run(".venv/bin/ruff format *.py")
21
 
22
 
23
  @task(pre=[imports, sources], default=True)
tasks/installs.py CHANGED
@@ -18,19 +18,19 @@ def venv(ctx: Context) -> None:
18
  @task
19
  def lock(ctx: Context) -> None:
20
  """Lock the main project dependencies."""
21
- ctx.run("uv pip compile requirements-main.txt -o requirements.txt")
22
 
23
 
24
  @task
25
  def main(ctx: Context) -> None:
26
  """Install the main dependencies."""
27
- ctx.run("uv pip install -r requirements.txt")
28
 
29
 
30
  @task
31
  def dev(ctx: Context) -> None:
32
  """Install the development dependencies."""
33
- ctx.run("uv pip install -r requirements-dev.txt")
34
 
35
 
36
  @task(pre=[venv, lock, main, dev], default=True)
 
18
  @task
19
  def lock(ctx: Context) -> None:
20
  """Lock the main project dependencies."""
21
+ ctx.run(".venv/bin/uv pip compile requirements-main.txt -o requirements.txt")
22
 
23
 
24
  @task
25
  def main(ctx: Context) -> None:
26
  """Install the main dependencies."""
27
+ ctx.run(".venv/bin/uv pip install -r requirements.txt")
28
 
29
 
30
  @task
31
  def dev(ctx: Context) -> None:
32
  """Install the development dependencies."""
33
+ ctx.run(".venv/bin/uv pip install -r requirements-dev.txt")
34
 
35
 
36
  @task(pre=[venv, lock, main, dev], default=True)
tasks/runs.py CHANGED
@@ -11,7 +11,7 @@ from invoke.context import Context
11
  @task
12
  def app(ctx: Context) -> None:
13
  """Run the main application."""
14
- ctx.run("gradio app.py")
15
 
16
 
17
  @task(pre=[app], default=True)
 
11
  @task
12
  def app(ctx: Context) -> None:
13
  """Run the main application."""
14
+ ctx.run(".venv/bin/gradio app.py")
15
 
16
 
17
  @task(pre=[app], default=True)