Spaces:
Sleeping
Sleeping
inital commit of requirements and black
Browse files- README.md +2 -1
- billy.py +4 -0
- pyproject.toml +14 -0
- requirements.txt +3 -0
README.md
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
# hillbilly-chat
|
| 2 |
-
|
|
|
|
|
|
| 1 |
# hillbilly-chat
|
| 2 |
+
What would a hillbilly say?
|
| 3 |
+
|
billy.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import openai
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
openai.api_key = "OPENAI_API_KEY"
|
pyproject.toml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[tool.black]
|
| 2 |
+
line-length = 80
|
| 3 |
+
target-version = ['py310']
|
| 4 |
+
include = '\.pyi?$'
|
| 5 |
+
# 'extend-exclude' excludes files or directories in addition to the defaults
|
| 6 |
+
extend-exclude = '''
|
| 7 |
+
# A regex preceded with ^/ will apply only to files and directories
|
| 8 |
+
# in the root of the project.
|
| 9 |
+
(
|
| 10 |
+
^/foo.py # exclude a file named foo.py in the root of the project
|
| 11 |
+
| .*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
|
| 12 |
+
)
|
| 13 |
+
'''
|
| 14 |
+
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
black
|
| 2 |
+
gradio
|
| 3 |
+
openai
|