Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,15 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
pipe = pipeline("object-detection", model="Charles95/autotrain-detr-cppe-v5")
|
| 5 |
|
| 6 |
examples = [
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
env_vars = os.environ
|
| 7 |
+
|
| 8 |
+
# 打印所有环境变量
|
| 9 |
+
for key, value in env_vars.items():
|
| 10 |
+
print(f"{key}: {value}")
|
| 11 |
+
|
| 12 |
+
|
| 13 |
pipe = pipeline("object-detection", model="Charles95/autotrain-detr-cppe-v5")
|
| 14 |
|
| 15 |
examples = [
|