Upload moondream_moondream3-preview_0.py with huggingface_hub
Browse files
moondream_moondream3-preview_0.py
CHANGED
|
@@ -10,7 +10,7 @@ try:
|
|
| 10 |
# Use a pipeline as a high-level helper
|
| 11 |
from transformers import pipeline
|
| 12 |
|
| 13 |
-
pipe = pipeline("text-
|
| 14 |
with open('moondream_moondream3-preview_0.txt', 'w') as f:
|
| 15 |
f.write('Everything was good in moondream_moondream3-preview_0.txt')
|
| 16 |
except Exception as e:
|
|
|
|
| 10 |
# Use a pipeline as a high-level helper
|
| 11 |
from transformers import pipeline
|
| 12 |
|
| 13 |
+
pipe = pipeline("image-text-to-text", model="moondream/moondream3-preview", trust_remote_code=True)
|
| 14 |
with open('moondream_moondream3-preview_0.txt', 'w') as f:
|
| 15 |
f.write('Everything was good in moondream_moondream3-preview_0.txt')
|
| 16 |
except Exception as e:
|