bhaskartripathi commited on
Commit
b38823a
1 Parent(s): 28aad75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -201,10 +201,11 @@ def question_answer(url, file, question, openAI_key, model):
201
  return [{USER_NAME: question, '[ERROR]': 'Either you do not have access to GPT4 or you have exhausted your quota!'}]
202
 
203
  # define gr.Chatbox for answer
204
- answer = gr.Chatbox(label='The answer to your question is :', placeholder='Type your question and press enter')
205
 
206
  # define gr.Chatbox for question
207
- question = gr.Chatbox(placeholder='Enter your question here', label='Enter your question here', message_pairs=[[USER_NAME, '']])
 
208
 
209
 
210
  def generate_text_text_davinci_003(openAI_key,prompt, engine="text-davinci-003"):
 
201
  return [{USER_NAME: question, '[ERROR]': 'Either you do not have access to GPT4 or you have exhausted your quota!'}]
202
 
203
  # define gr.Chatbox for answer
204
+ answer = gr.Chatbot(label='The answer to your question is :', placeholder='Type your question and press enter')
205
 
206
  # define gr.Chatbox for question
207
+ question = gr.Chatbot(placeholder='Enter your question here', label='Enter your question here', message_pairs=[[USER_NAME, '']])
208
+
209
 
210
 
211
  def generate_text_text_davinci_003(openAI_key,prompt, engine="text-davinci-003"):