Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,10 +11,10 @@ with gr.Blocks() as demo:
|
|
| 11 |
with gr.Row():
|
| 12 |
gr.Markdown("This application generates a focus group to answer your questions.\nFirst list your topic and questions, generate the focus group profile, get their answers and finally access the summary report")
|
| 13 |
with gr.Row():
|
| 14 |
-
gr.Column(scale = 6):
|
| 15 |
apikey = gr.Textbox(label='Paste here your OpenAI - API key', info='No API key is stored and only you will see it.', lines = 1)
|
| 16 |
openai.api_key = os.getenv('APICode2') # openai.api_key = apikey
|
| 17 |
-
gr.Column(scale = 1):
|
| 18 |
useapi = gr.Button("Use this API")
|
| 19 |
with gr.Row(visible = False) as fullblock:
|
| 20 |
with gr.Tab("Enquiry Description"):
|
|
|
|
| 11 |
with gr.Row():
|
| 12 |
gr.Markdown("This application generates a focus group to answer your questions.\nFirst list your topic and questions, generate the focus group profile, get their answers and finally access the summary report")
|
| 13 |
with gr.Row():
|
| 14 |
+
with gr.Column(scale = 6):
|
| 15 |
apikey = gr.Textbox(label='Paste here your OpenAI - API key', info='No API key is stored and only you will see it.', lines = 1)
|
| 16 |
openai.api_key = os.getenv('APICode2') # openai.api_key = apikey
|
| 17 |
+
with gr.Column(scale = 1):
|
| 18 |
useapi = gr.Button("Use this API")
|
| 19 |
with gr.Row(visible = False) as fullblock:
|
| 20 |
with gr.Tab("Enquiry Description"):
|