Spaces:
Runtime error
Runtime error
Michael Benayoun
commited on
Commit
·
798abe7
1
Parent(s):
50eea25
Yay
Browse files- Dockerfile +2 -0
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -12,4 +12,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
| 15 |
CMD ["python", "app.py"]
|
|
|
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 15 |
+
COPY --chown=user . $HOME/app
|
| 16 |
+
|
| 17 |
CMD ["python", "app.py"]
|
app.py
CHANGED
|
@@ -28,7 +28,7 @@ ACCESS_TOKEN_SECRET = os.environ.get("ACCESS_TOKEN_SECRET")
|
|
| 28 |
|
| 29 |
# Real tweets
|
| 30 |
|
| 31 |
-
real_dataset = load_dataset("dawood/elon-tweets", split="train", cache_dir="
|
| 32 |
real_df = real_dataset.to_pandas()
|
| 33 |
real_tweets = real_df["Tweets"][:500].values.tolist()
|
| 34 |
|
|
|
|
| 28 |
|
| 29 |
# Real tweets
|
| 30 |
|
| 31 |
+
real_dataset = load_dataset("dawood/elon-tweets", split="train", cache_dir="dataset_cache")
|
| 32 |
real_df = real_dataset.to_pandas()
|
| 33 |
real_tweets = real_df["Tweets"][:500].values.tolist()
|
| 34 |
|