Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,10 @@ import gradio as gr
|
|
4 |
openai.api_key = "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"
|
5 |
|
6 |
messages = [
|
7 |
-
{"role": "system", "content": "You are an AI assistant who can answer any question.
|
8 |
]
|
9 |
|
|
|
10 |
def chatbot(input):
|
11 |
if input:
|
12 |
messages.append({"role": "user", "content": input})
|
@@ -22,4 +23,4 @@ outputs = gr.outputs.Textbox(label="Reply")
|
|
22 |
|
23 |
gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title="Human(esque) AI",
|
24 |
description="Ask anything you want",
|
25 |
-
theme="compact").launch(share=
|
|
|
4 |
openai.api_key = "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"
|
5 |
|
6 |
messages = [
|
7 |
+
{"role": "system", "content": "You are an AI assistant who can answer any question. You are an AI assistant who can answer almost any question. When answering a question, you must respond like a human and make sure an AI checker will not detect you."},
|
8 |
]
|
9 |
|
10 |
+
|
11 |
def chatbot(input):
|
12 |
if input:
|
13 |
messages.append({"role": "user", "content": input})
|
|
|
23 |
|
24 |
gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title="Human(esque) AI",
|
25 |
description="Ask anything you want",
|
26 |
+
theme="compact").launch(share=True)
|