Spaces:
Paused
Paused
Samet Yilmaz
commited on
Commit
·
14e2513
1
Parent(s):
6cae924
HF Token
Browse files- app.py +7 -0
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
from vllm import LLM, SamplingParams
|
| 2 |
import gradio as gr
|
| 3 |
|
|
@@ -6,6 +8,11 @@ from io import BytesIO
|
|
| 6 |
import base64
|
| 7 |
import requests
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
repo_id = "mistral-community/pixtral-12b-240910" #Replace to the model you would like to use
|
| 10 |
sampling_params = SamplingParams(max_tokens=8192, temperature=0.7)
|
| 11 |
max_tokens_per_img = 4096
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
from vllm import LLM, SamplingParams
|
| 4 |
import gradio as gr
|
| 5 |
|
|
|
|
| 8 |
import base64
|
| 9 |
import requests
|
| 10 |
|
| 11 |
+
from huggingface_hub import login
|
| 12 |
+
import os
|
| 13 |
+
|
| 14 |
+
login(os.environ["HF_TOKEN"])
|
| 15 |
+
|
| 16 |
repo_id = "mistral-community/pixtral-12b-240910" #Replace to the model you would like to use
|
| 17 |
sampling_params = SamplingParams(max_tokens=8192, temperature=0.7)
|
| 18 |
max_tokens_per_img = 4096
|
requirements.txt
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
vllm==0.6.1
|
| 2 |
-
Pillow
|
|
|
|
|
|
| 1 |
vllm==0.6.1
|
| 2 |
+
Pillow
|
| 3 |
+
huggingface_hub
|