mikefish commited on
Commit
c194ffc
β€’
1 Parent(s): dc37fc0

fixed readme. removed key

Browse files
Files changed (2) hide show
  1. README.md +12 -0
  2. app.py +6 -6
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
- #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,10 +177,10 @@ with gr.Blocks() as demo:
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
  """
 
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
  """