Upload Qwen_Qwen3-VL-2B-Thinking_0.py with huggingface_hub
Browse files
Qwen_Qwen3-VL-2B-Thinking_0.py
CHANGED
|
@@ -38,7 +38,8 @@ except Exception as e:
|
|
| 38 |
|
| 39 |
with open('Qwen_Qwen3-VL-2B-Thinking_0.txt', 'a', encoding='utf-8') as f:
|
| 40 |
import traceback
|
| 41 |
-
f.write('
|
|
|
|
| 42 |
# Use a pipeline as a high-level helper
|
| 43 |
from transformers import pipeline
|
| 44 |
|
|
@@ -55,7 +56,7 @@ messages = [
|
|
| 55 |
pipe(text=messages)
|
| 56 |
```
|
| 57 |
ERROR:
|
| 58 |
-
')
|
| 59 |
traceback.print_exc(file=f)
|
| 60 |
|
| 61 |
finally:
|
|
|
|
| 38 |
|
| 39 |
with open('Qwen_Qwen3-VL-2B-Thinking_0.txt', 'a', encoding='utf-8') as f:
|
| 40 |
import traceback
|
| 41 |
+
f.write('''
|
| 42 |
+
```CODE:
|
| 43 |
# Use a pipeline as a high-level helper
|
| 44 |
from transformers import pipeline
|
| 45 |
|
|
|
|
| 56 |
pipe(text=messages)
|
| 57 |
```
|
| 58 |
ERROR:
|
| 59 |
+
''')
|
| 60 |
traceback.print_exc(file=f)
|
| 61 |
|
| 62 |
finally:
|