Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def generate_prompt():
|
|
56 |
prompt = generate_sentence()
|
57 |
return prompt
|
58 |
|
59 |
-
|
60 |
value2 = gr.outputs.Textbox(label="Prompt")
|
61 |
|
62 |
# examples = [
|
@@ -67,7 +67,7 @@ value2 = gr.outputs.Textbox(label="Prompt")
|
|
67 |
|
68 |
demo = gr.Interface(
|
69 |
fn=generate_prompt,
|
70 |
-
inputs=
|
71 |
outputs=value2,
|
72 |
title="Prompt Generator for OpenAI's DALL-E"
|
73 |
# examples=examples,
|
|
|
56 |
prompt = generate_sentence()
|
57 |
return prompt
|
58 |
|
59 |
+
value1 = gr.inputs.Textbox(label="Character", placeholder="Enter the character...")
|
60 |
value2 = gr.outputs.Textbox(label="Prompt")
|
61 |
|
62 |
# examples = [
|
|
|
67 |
|
68 |
demo = gr.Interface(
|
69 |
fn=generate_prompt,
|
70 |
+
inputs=value1,
|
71 |
outputs=value2,
|
72 |
title="Prompt Generator for OpenAI's DALL-E"
|
73 |
# examples=examples,
|