Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,9 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
5 |
import torch
|
6 |
from transformers import pipeline
|
7 |
|
8 |
-
pipe = pipeline("text-generation", model="microsoft/Phi-3-mini-128k-instruct", trust_remote_code=True)
|
9 |
|
10 |
-
|
11 |
|
12 |
|
13 |
@spaces.GPU
|
|
|
5 |
import torch
|
6 |
from transformers import pipeline
|
7 |
|
8 |
+
#pipe = pipeline("text-generation", model="microsoft/Phi-3-mini-128k-instruct", trust_remote_code=True)
|
9 |
|
10 |
+
client = InferenceClient("microsoft/Phi-3-mini-128k-instruct")
|
11 |
|
12 |
|
13 |
@spaces.GPU
|