Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,10 +2,6 @@ import json, time, csv, os
|
|
| 2 |
import gradio as gr
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
-
PIPELINES = {
|
| 6 |
-
name: pipeline("zero-shot-classification", model=name)
|
| 7 |
-
for name in MODEL_CHOICES
|
| 8 |
-
}
|
| 9 |
|
| 10 |
# ββββββββββββββββ
|
| 11 |
# Load taxonomies
|
|
@@ -26,6 +22,12 @@ MODEL_CHOICES = [
|
|
| 26 |
"FractalAIResearch/Fathom-R1-14B" # placeholder β replace with real phantom model
|
| 27 |
]
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# ββββββββββββββββ
|
| 30 |
# Ensure log files exist
|
| 31 |
# ββββββββββββββββ
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
from transformers import pipeline
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
# ββββββββββββββββ
|
| 7 |
# Load taxonomies
|
|
|
|
| 22 |
"FractalAIResearch/Fathom-R1-14B" # placeholder β replace with real phantom model
|
| 23 |
]
|
| 24 |
|
| 25 |
+
|
| 26 |
+
PIPELINES = {
|
| 27 |
+
name: pipeline("zero-shot-classification", model=name)
|
| 28 |
+
for name in MODEL_CHOICES
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
# ββββββββββββββββ
|
| 32 |
# Ensure log files exist
|
| 33 |
# ββββββββββββββββ
|