Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
| 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
|