Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,12 +93,12 @@ with gr.Blocks() as demo:
|
|
93 |
textbox2 = gr.Textbox(placeholder="Enter OpenAI API Key...", lines=1,label='Your API Key (Mandatory)')
|
94 |
btn = gr.Button("Generate")
|
95 |
examples = gr.Examples(examples=['English Premier League','Heavy metal music','Face recognition','Arsenal Football Club',],
|
96 |
-
inputs=[
|
97 |
with gr.Column():
|
98 |
output_image1 = gr.components.Image(label="Your Mind Map")
|
99 |
|
100 |
|
101 |
-
btn.click(getmindmap,inputs=[textbox1,textbox2], outputs=[output_image1
|
102 |
|
103 |
|
104 |
demo.launch()
|
|
|
93 |
textbox2 = gr.Textbox(placeholder="Enter OpenAI API Key...", lines=1,label='Your API Key (Mandatory)')
|
94 |
btn = gr.Button("Generate")
|
95 |
examples = gr.Examples(examples=['English Premier League','Heavy metal music','Face recognition','Arsenal Football Club',],
|
96 |
+
inputs=[textbox1])
|
97 |
with gr.Column():
|
98 |
output_image1 = gr.components.Image(label="Your Mind Map")
|
99 |
|
100 |
|
101 |
+
btn.click(getmindmap,inputs=[textbox1,textbox2], outputs=[output_image1])
|
102 |
|
103 |
|
104 |
demo.launch()
|