hysts HF staff commited on
Commit
9b30274
1 Parent(s): e18ba1b

gradio==5.5.0

Browse files
Files changed (4) hide show
  1. README.md +1 -1
  2. app.py +1 -1
  3. requirements.txt +10 -5
  4. style.css +0 -6
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🏆
4
  colorFrom: purple
5
  colorTo: gray
6
  sdk: gradio
7
- sdk_version: 5.0.1
8
  app_file: app.py
9
  pinned: false
10
  suggested_hardware: a10g-small
 
4
  colorFrom: purple
5
  colorTo: gray
6
  sdk: gradio
7
+ sdk_version: 5.5.0
8
  app_file: app.py
9
  pinned: false
10
  suggested_hardware: a10g-small
app.py CHANGED
@@ -44,7 +44,7 @@ if torch.cuda.is_available():
44
  def generate(
45
  message: str,
46
  chat_history: list[dict],
47
- system_prompt: str,
48
  max_new_tokens: int = 1024,
49
  temperature: float = 0.6,
50
  top_p: float = 0.9,
 
44
  def generate(
45
  message: str,
46
  chat_history: list[dict],
47
+ system_prompt: str = "",
48
  max_new_tokens: int = 1024,
49
  temperature: float = 0.6,
50
  top_p: float = 0.9,
requirements.txt CHANGED
@@ -26,7 +26,7 @@ click==8.1.7
26
  # uvicorn
27
  exceptiongroup==1.2.2
28
  # via anyio
29
- fastapi==0.115.0
30
  # via gradio
31
  ffmpy==0.4.0
32
  # via gradio
@@ -41,11 +41,11 @@ fsspec==2024.9.0
41
  # gradio-client
42
  # huggingface-hub
43
  # torch
44
- gradio==5.0.1
45
  # via
46
  # llama-2-7b-chat (pyproject.toml)
47
  # spaces
48
- gradio-client==1.4.0
49
  # via gradio
50
  h11==0.14.0
51
  # via
@@ -59,6 +59,7 @@ httpx==0.27.2
59
  # via
60
  # gradio
61
  # gradio-client
 
62
  # spaces
63
  huggingface-hub==0.25.1
64
  # via
@@ -178,6 +179,8 @@ rich==13.8.1
178
  # via typer
179
  ruff==0.6.8
180
  # via gradio
 
 
181
  safetensors==0.4.5
182
  # via
183
  # accelerate
@@ -194,8 +197,10 @@ sniffio==1.3.1
194
  # httpx
195
  spaces==0.30.3
196
  # via llama-2-7b-chat (pyproject.toml)
197
- starlette==0.38.6
198
- # via fastapi
 
 
199
  sympy==1.13.3
200
  # via torch
201
  tokenizers==0.20.0
 
26
  # uvicorn
27
  exceptiongroup==1.2.2
28
  # via anyio
29
+ fastapi==0.115.4
30
  # via gradio
31
  ffmpy==0.4.0
32
  # via gradio
 
41
  # gradio-client
42
  # huggingface-hub
43
  # torch
44
+ gradio==5.5.0
45
  # via
46
  # llama-2-7b-chat (pyproject.toml)
47
  # spaces
48
+ gradio-client==1.4.2
49
  # via gradio
50
  h11==0.14.0
51
  # via
 
59
  # via
60
  # gradio
61
  # gradio-client
62
+ # safehttpx
63
  # spaces
64
  huggingface-hub==0.25.1
65
  # via
 
179
  # via typer
180
  ruff==0.6.8
181
  # via gradio
182
+ safehttpx==0.1.1
183
+ # via gradio
184
  safetensors==0.4.5
185
  # via
186
  # accelerate
 
197
  # httpx
198
  spaces==0.30.3
199
  # via llama-2-7b-chat (pyproject.toml)
200
+ starlette==0.41.2
201
+ # via
202
+ # fastapi
203
+ # gradio
204
  sympy==1.13.3
205
  # via torch
206
  tokenizers==0.20.0
style.css CHANGED
@@ -9,9 +9,3 @@ h1 {
9
  background: #1565c0;
10
  border-radius: 100vh;
11
  }
12
-
13
- .contain {
14
- max-width: 900px;
15
- margin: auto;
16
- padding-top: 1.5rem;
17
- }
 
9
  background: #1565c0;
10
  border-radius: 100vh;
11
  }