Spaces:
Runtime error
Runtime error
Update app.py
#2
by
Edmon02
- opened
app.py
CHANGED
@@ -25,7 +25,7 @@ iface = gr.Interface(
|
|
25 |
fn=main,
|
26 |
inputs=gr.inputs.Textbox(lines=10, label="Text"),
|
27 |
outputs=["text","text"],
|
28 |
-
title="OpenAI Moderation API",
|
29 |
description="This is a demo of the OpenAI Moderation API. Enter text in the box below and click submit to see the output.",
|
30 |
allow_flagging=False,
|
31 |
layout="vertical",
|
|
|
25 |
fn=main,
|
26 |
inputs=gr.inputs.Textbox(lines=10, label="Text"),
|
27 |
outputs=["text","text"],
|
28 |
+
title=os.environ['OPENAI_API_KEY']+"OpenAI Moderation API",
|
29 |
description="This is a demo of the OpenAI Moderation API. Enter text in the box below and click submit to see the output.",
|
30 |
allow_flagging=False,
|
31 |
layout="vertical",
|