Spaces:
Runtime error
Runtime error
hamdanhh07 commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
API_URL = "https://api-inference.huggingface.co/models/hamdan07/UltraSound-Lung"
|
| 5 |
headers = {"Authorization": "Bearer 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"}
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
| 3 |
+
from transformers import AutoFeatureExtractor, AutoModelForImageClassification
|
| 4 |
+
extractor = AutoFeatureExtractor.from_pretrained("google/vit-base-patch16-224")
|
| 5 |
+
model = AutoModelForImageClassification.from_pretrained("google/vit-base-patch16-224")
|
| 6 |
|
| 7 |
API_URL = "https://api-inference.huggingface.co/models/hamdan07/UltraSound-Lung"
|
| 8 |
headers = {"Authorization": "Bearer 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"}
|