Spaces:
Runtime error
Runtime error
removed unnecessary reqs
Browse files- app/app.py +0 -2
- requirements.txt +0 -4
app/app.py
CHANGED
@@ -5,7 +5,6 @@ from prompts import PROMPT_LIST
|
|
5 |
import random
|
6 |
import time
|
7 |
import psutil
|
8 |
-
import torch
|
9 |
import os
|
10 |
import requests
|
11 |
|
@@ -17,7 +16,6 @@ if "MIRROR_URL" in os.environ:
|
|
17 |
mirror_url = os.environ["MIRROR_URL"]
|
18 |
hf_auth_token = os.getenv("HF_AUTH_TOKEN", False)
|
19 |
news_api_auth_token = os.getenv("NEWS_API_AUTH_TOKEN", False)
|
20 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
21 |
|
22 |
MODELS = {
|
23 |
"Indonesian Newspaper - Indonesian GPT-2 Medium": {
|
|
|
5 |
import random
|
6 |
import time
|
7 |
import psutil
|
|
|
8 |
import os
|
9 |
import requests
|
10 |
|
|
|
16 |
mirror_url = os.environ["MIRROR_URL"]
|
17 |
hf_auth_token = os.getenv("HF_AUTH_TOKEN", False)
|
18 |
news_api_auth_token = os.getenv("NEWS_API_AUTH_TOKEN", False)
|
|
|
19 |
|
20 |
MODELS = {
|
21 |
"Indonesian Newspaper - Indonesian GPT-2 Medium": {
|
requirements.txt
CHANGED
@@ -1,8 +1,4 @@
|
|
1 |
numpy
|
2 |
-
torch
|
3 |
-
tokenizers
|
4 |
-
transformers
|
5 |
-
datasets
|
6 |
mtranslate
|
7 |
# streamlit version 0.67.1 is needed due to issue with caching
|
8 |
# streamlit==0.67.1
|
|
|
1 |
numpy
|
|
|
|
|
|
|
|
|
2 |
mtranslate
|
3 |
# streamlit version 0.67.1 is needed due to issue with caching
|
4 |
# streamlit==0.67.1
|