Blessin commited on
Commit
342a63f
·
1 Parent(s): 5f64618

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -50,7 +50,7 @@ def set_openai_key(api_key):
50
  # Set up the OpenAI API key
51
  openai.api_key = api_key
52
 
53
- def generate_statement(api_key, use_gpt=True):
54
  # Set the OpenAI API key using the provided input
55
  set_openai_key(api_key)
56
 
@@ -73,7 +73,10 @@ def main():
73
  inputs=["text", "checkbox"], # Input is a text field for API key and a checkbox for GPT option
74
  outputs="text", # Output is a text area
75
  live=False, # Only generate statement after button press
76
- description="Enter your OpenAI API key and select whether to use GPT or get a random statement, then press the button."
 
 
 
77
  )
78
 
79
  # Launch the UI on Spaces
 
50
  # Set up the OpenAI API key
51
  openai.api_key = api_key
52
 
53
+ def generate_statement(api_key, use_gpt):
54
  # Set the OpenAI API key using the provided input
55
  set_openai_key(api_key)
56
 
 
73
  inputs=["text", "checkbox"], # Input is a text field for API key and a checkbox for GPT option
74
  outputs="text", # Output is a text area
75
  live=False, # Only generate statement after button press
76
+ title="One Liners",
77
+ description="""Welcome to "One Liners"! This interactive tool provides intriguing dialogues perfect for improvisation scenes. Here's how to play:
78
+ - Generate a random dialogue by selecting the 'Submit button'.
79
+ - Check the "Use GPT" option for GPT to craft a brand new dialogue for you on the spot."""
80
  )
81
 
82
  # Launch the UI on Spaces