Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,17 +100,16 @@ with gr.Blocks() as demo:
|
|
| 100 |
"""Enter a topic and get a quick Mind Map. Use examples as a guide. \n\nNote: Error typically occurs with wrong OpenAI API key & sometimes with ChatGPT's inability to give a structured mindmap"""
|
| 101 |
)
|
| 102 |
with gr.Row() as row:
|
| 103 |
-
with gr.
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
with gr.
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
inputs=[textbox1])
|
| 114 |
with gr.Row() as row:
|
| 115 |
with gr.Column():
|
| 116 |
output_image1 = gr.components.Image(label="Your Mind Map as Graph")
|
|
|
|
| 100 |
"""Enter a topic and get a quick Mind Map. Use examples as a guide. \n\nNote: Error typically occurs with wrong OpenAI API key & sometimes with ChatGPT's inability to give a structured mindmap"""
|
| 101 |
)
|
| 102 |
with gr.Row() as row:
|
| 103 |
+
with gr.Column():
|
| 104 |
+
textbox1 = gr.Textbox(placeholder="Enter topic for Mind Map...", lines=1,label='Your topic (Mandatory)')
|
| 105 |
+
with gr.Column():
|
| 106 |
+
textbox2 = gr.Textbox(placeholder="Enter OpenAI API Key...", lines=1,label='Your API Key (Mandatory)')
|
| 107 |
+
with gr.Row() as row:
|
| 108 |
+
with gr.Column():
|
| 109 |
+
btn = gr.Button("Generate")
|
| 110 |
+
with gr.Column():
|
| 111 |
+
examples = gr.Examples(examples=['English Premier League','Heavy metal music','Face recognition','Arsenal Football Club',],
|
| 112 |
+
inputs=[textbox1])
|
|
|
|
| 113 |
with gr.Row() as row:
|
| 114 |
with gr.Column():
|
| 115 |
output_image1 = gr.components.Image(label="Your Mind Map as Graph")
|