RamV commited on
Commit
cc85b01
·
1 Parent(s): 1a19582

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -43,14 +43,12 @@ def openai_chat_history(input, history):
43
  conversation_prompt = "Welcome to ChatRobo, kindly type in your enquiries: "
44
 
45
  # Set up the Gradio interface
46
- textbox = gr.inputs.Textbox(placeholder=conversation_prompt)
47
- textbox_output = gr.outputs.Textbox(label="ChatRobo Output")
48
-
49
  block = gr.Interface(
50
  fn=openai_chat_history,
51
- inputs=textbox,
52
- outputs=textbox_output
53
  )
54
 
55
  # Launch the Gradio interface
56
- block.launch()
 
 
43
  conversation_prompt = "Welcome to ChatRobo, kindly type in your enquiries: "
44
 
45
  # Set up the Gradio interface
 
 
 
46
  block = gr.Interface(
47
  fn=openai_chat_history,
48
+ inputs=[gr.inputs.Textbox(placeholder=conversation_prompt)],
49
+ outputs=[gr.outputs.Textbox(label="ChatRobo Output")]
50
  )
51
 
52
  # Launch the Gradio interface
53
+ block.launch()
54
+