Guiyom commited on
Commit
443350b
·
1 Parent(s): cf552d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -8,8 +8,12 @@ import re
8
  # Set up OpenAI API key
9
  system_message = "You are an assistant simulating the behavior of the participants in a focus group and answer a set of questions. Your first task will be to generate the profiles of the focus group then to simulate their answers to the question for each member."
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(visible = True) as apicheck:
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)
@@ -390,7 +394,7 @@ Now please provide your results.
390
 
391
  def answer(formmatedprompt):
392
  response = openai.ChatCompletion.create(
393
- model="gpt-3.5-turbo-16k", #"gpt-4"
394
  messages=formmatedprompt
395
  )
396
  result = response['choices'][0]['message']['content']
 
8
  # Set up OpenAI API key
9
  system_message = "You are an assistant simulating the behavior of the participants in a focus group and answer a set of questions. Your first task will be to generate the profiles of the focus group then to simulate their answers to the question for each member."
10
  with gr.Blocks() as demo:
11
+ with gr.Row():
12
+ gr.Markdown("Author: Taeko Huet-Sakai")
13
  with gr.Row():
14
  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")
15
+ with gr.Row():
16
+ gr.Markdown("DISCLAIMER: The content generated will be depending on the input you integrated in the respective fields and the behavior of the large language model (GPT4) used for the text generation.")
17
  with gr.Row(visible = True) as apicheck:
18
  with gr.Column(scale = 6):
19
  apikey = gr.Textbox(label='Paste here your OpenAI - API key', info='No API key is stored and only you will see it.', lines = 1)
 
394
 
395
  def answer(formmatedprompt):
396
  response = openai.ChatCompletion.create(
397
+ model="gpt-4"
398
  messages=formmatedprompt
399
  )
400
  result = response['choices'][0]['message']['content']