Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import os
|
| 2 |
import requests
|
|
|
|
| 3 |
from fastapi import FastAPI, Request
|
| 4 |
from transformers import pipeline
|
| 5 |
|
| 6 |
-
# ========== 1) تحميل الموديل ==========
|
| 7 |
deployed_repo_id = "maryaa4/my-arabic-sentiment-model"
|
| 8 |
|
| 9 |
sentiment_pipeline = pipeline(
|
|
|
|
| 1 |
import os
|
| 2 |
import requests
|
| 3 |
+
import torch # ← أضفناه هنا
|
| 4 |
from fastapi import FastAPI, Request
|
| 5 |
from transformers import pipeline
|
| 6 |
|
|
|
|
| 7 |
deployed_repo_id = "maryaa4/my-arabic-sentiment-model"
|
| 8 |
|
| 9 |
sentiment_pipeline = pipeline(
|