RamV commited on
Commit
da1ccce
·
1 Parent(s): e7519e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -60,10 +60,13 @@ def openai_chat_history(input, history):
60
  conversation_prompt = "Welcome to ChatRobo, kindly type in your enquiries: "
61
 
62
  # Set up the Gradio interface
 
 
 
63
  block = gr.Interface(
64
  fn=openai_chat_history,
65
- inputs=gr.inputs.Textbox(placeholder=conversation_prompt),
66
- outputs=gr.outputs.Textbox(label="ChatRobo Output")
67
  )
68
 
69
  # Launch the Gradio interface
 
60
  conversation_prompt = "Welcome to ChatRobo, kindly type in your enquiries: "
61
 
62
  # Set up the Gradio interface
63
+ textbox = gr.inputs.Textbox(placeholder=conversation_prompt)
64
+ textbox_output = gr.outputs.Textbox(label="ChatRobo Output")
65
+
66
  block = gr.Interface(
67
  fn=openai_chat_history,
68
+ inputs=textbox,
69
+ outputs=textbox_output
70
  )
71
 
72
  # Launch the Gradio interface