Spaces:
Runtime error
Runtime error
fixed readme. removed key
Browse files
README.md
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: CharacterMaker
|
3 |
+
emoji: π
|
4 |
+
colorFrom: pink
|
5 |
+
colorTo: purple
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: 3.36.1
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
---
|
11 |
+
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -15,8 +15,8 @@ import codecs
|
|
15 |
import random
|
16 |
|
17 |
## Remember to set $env:OPENAI_API_KEY="keyhere"
|
18 |
-
|
19 |
-
openai.api_key = ""
|
20 |
def getAndParseQuickStart(text, count):
|
21 |
print("Asking AI for a character of " + text + " with trait count:")
|
22 |
print(count)
|
@@ -177,10 +177,10 @@ with gr.Blocks() as demo:
|
|
177 |
"""
|
178 |
# Character Maker v0.1 #
|
179 |
""")
|
180 |
-
with gr.Row():
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
with gr.Row():
|
185 |
gr.Markdown(
|
186 |
"""
|
|
|
15 |
import random
|
16 |
|
17 |
## Remember to set $env:OPENAI_API_KEY="keyhere"
|
18 |
+
openai.api_key = os.getenv("OPENAI_API_KEY")
|
19 |
+
#openai.api_key = ""
|
20 |
def getAndParseQuickStart(text, count):
|
21 |
print("Asking AI for a character of " + text + " with trait count:")
|
22 |
print(count)
|
|
|
177 |
"""
|
178 |
# Character Maker v0.1 #
|
179 |
""")
|
180 |
+
# with gr.Row():
|
181 |
+
# myKey = gr.Text(label="OPENAI API KEY", info="must have gpt4 access (for now)")
|
182 |
+
# keySave = gr.Button(value="Set")
|
183 |
+
# keySave.click(saveKey, inputs=[myKey])
|
184 |
with gr.Row():
|
185 |
gr.Markdown(
|
186 |
"""
|