cogcorp commited on
Commit
2febc6a
·
1 Parent(s): b62233d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -51,7 +51,10 @@ def call_openai_api(user_prompt):
51
  else:
52
  return str(e) # return the exception message after the last attempt
53
 
54
- iface = gr.Interface(fn=call_openai_api, inputs="text", outputs="text")
 
 
 
55
  iface.launch()
56
 
57
 
 
51
  else:
52
  return str(e) # return the exception message after the last attempt
53
 
54
+ iface = gr.Interface(fn=call_openai_api,
55
+ inputs=gr.inputs.Textbox(label="User Prompt For Cognitive Agent"),
56
+ outputs=gr.outputs.Textbox(label="Cognitive Agent Response"),
57
+ title="HumanCentric Labs")
58
  iface.launch()
59
 
60