Dasdeman commited on
Commit
a96d4f1
·
verified ·
1 Parent(s): a0101ae

Upload 26 files

Browse files
Files changed (4) hide show
  1. Dockerfile +0 -4
  2. admin_ui.py +1 -1
  3. requirements.txt +3 -3
  4. showcase_ui.py +1 -1
Dockerfile CHANGED
@@ -2,15 +2,11 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Копіюємо залежності
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # Копіюємо проект
10
  COPY . .
11
 
12
- # Відкриваємо порт
13
  EXPOSE 7860
14
 
15
- # Запуск
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . .
9
 
 
10
  EXPOSE 7860
11
 
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
admin_ui.py CHANGED
@@ -8,7 +8,7 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
8
  def build_admin_app():
9
  initial_models = get_models_data(BASE_DIR)
10
 
11
- with gr.Blocks(title="Unstop Admin", analytics_enabled=False, show_api=False) as app_admin:
12
 
13
  with gr.Tabs():
14
 
 
8
  def build_admin_app():
9
  initial_models = get_models_data(BASE_DIR)
10
 
11
+ with gr.Blocks(title="Unstop Admin", analytics_enabled=False) as app_admin:
12
 
13
  with gr.Tabs():
14
 
requirements.txt CHANGED
@@ -2,6 +2,6 @@ gradio==4.42.0
2
  huggingface_hub==0.23.4
3
  fastapi==0.111.0
4
  uvicorn==0.30.1
5
- jinja2
6
- python-dotenv
7
- slowapi
 
2
  huggingface_hub==0.23.4
3
  fastapi==0.111.0
4
  uvicorn==0.30.1
5
+ jinja2==3.1.4
6
+ python-dotenv==1.0.1
7
+ slowapi==0.1.9
showcase_ui.py CHANGED
@@ -63,7 +63,7 @@ def build_showcase_app():
63
  css=shell_css,
64
  js=HIDE_FOOTER_JS,
65
  analytics_enabled=False,
66
- ) as app_showcase:
67
  showcase_html = gr.HTML()
68
 
69
  def get_current_html():
 
63
  css=shell_css,
64
  js=HIDE_FOOTER_JS,
65
  analytics_enabled=False,
66
+ ) as app_showcase: # show_api не используем — несовместим с gr 4.x
67
  showcase_html = gr.HTML()
68
 
69
  def get_current_html():