Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
68c11f0
1
Parent(s):
7f45e1c
updated requirements.txt to only have openai; get rid of old imoprt statements that are not needed (i.e. spaces, transformers, torch, etc.)
Browse files- app.py +5 -6
- requirements.txt +0 -3
app.py
CHANGED
@@ -1,12 +1,11 @@
|
|
1 |
import os
|
2 |
-
import
|
3 |
-
from
|
|
|
4 |
import gradio as gr
|
5 |
-
import spaces
|
6 |
import openai
|
7 |
-
|
8 |
-
|
9 |
-
from typing import List, Optional, Tuple, Union
|
10 |
|
11 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
12 |
LEPTON_API_TOKEN = os.environ.get("LEPTON_API_TOKEN", None)
|
|
|
1 |
import os
|
2 |
+
import re
|
3 |
+
from typing import List, Tuple, Union
|
4 |
+
from pathlib import Path
|
5 |
import gradio as gr
|
|
|
6 |
import openai
|
7 |
+
|
8 |
+
|
|
|
9 |
|
10 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
11 |
LEPTON_API_TOKEN = os.environ.get("LEPTON_API_TOKEN", None)
|
requirements.txt
CHANGED
@@ -1,4 +1 @@
|
|
1 |
-
torch
|
2 |
-
git+https://github.com/huggingface/transformers.git
|
3 |
-
accelerate
|
4 |
openai
|
|
|
|
|
|
|
|
|
1 |
openai
|