Update app.py
Browse files
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,
|
|
|
|
|
|
|
|
|
|
| 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 |
|