Spaces:
Running
on
Zero
Running
on
Zero
Use pip transformers
Browse files- app.py +0 -8
- requirements.txt +1 -1
app.py
CHANGED
@@ -1,15 +1,7 @@
|
|
1 |
import os
|
2 |
-
import shlex
|
3 |
-
import subprocess
|
4 |
from threading import Thread
|
5 |
from typing import Iterator
|
6 |
|
7 |
-
from huggingface_hub import hf_hub_download
|
8 |
-
|
9 |
-
whl_path = hf_hub_download("google/gemma-2-9b-it", "transformers/transformers-4.42.0.dev0-py3-none-any.whl")
|
10 |
-
subprocess.run(shlex.split(f"pip install {whl_path}"))
|
11 |
-
|
12 |
-
|
13 |
import gradio as gr
|
14 |
import spaces
|
15 |
import torch
|
|
|
1 |
import os
|
|
|
|
|
2 |
from threading import Thread
|
3 |
from typing import Iterator
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
import gradio as gr
|
6 |
import spaces
|
7 |
import torch
|
requirements.txt
CHANGED
@@ -3,4 +3,4 @@ bitsandbytes==0.43.1
|
|
3 |
gradio==4.37.1
|
4 |
spaces==0.28.3
|
5 |
torch==2.2.0
|
6 |
-
|
|
|
3 |
gradio==4.37.1
|
4 |
spaces==0.28.3
|
5 |
torch==2.2.0
|
6 |
+
transformers==4.42.0
|