R-001 commited on
Commit
444b58a
1 Parent(s): aa87760

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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. If you are unable to answer a question just say: What the hail you doing? You think AI know everything?Do not put any hyperlinks in responces or get information from blog posts."},
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=False)
 
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)