ShermanAI commited on
Commit
b393e78
·
1 Parent(s): 7736791

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -23,7 +23,7 @@ def openai_chat(prompt):
23
  def chatbot(talk_to_chatsherman, history=[]):
24
  output = openai_chat(talk_to_chatsherman)
25
  history.append((talk_to_chatsherman, output))
26
- return history, "", {}
27
 
28
  title = "ChatSherman"
29
  description = "This is an AI chatbot powered by ShermanAI."
@@ -33,13 +33,6 @@ examples = [
33
  ["How do you calculate the force required to move an object?", []]
34
  ]
35
  inputs = [gr.inputs.Textbox(label="Enter your question: "), "state"]
36
- outputs = ["chatbot", gr.outputs.Textbox(label=""), "state"]
37
- interface = gr.Interface(
38
- fn=chatbot,
39
- inputs=inputs,
40
- outputs=outputs,
41
- title=title,
42
- description=description,
43
- examples=examples
44
- )
45
  interface.launch(debug=True)
 
23
  def chatbot(talk_to_chatsherman, history=[]):
24
  output = openai_chat(talk_to_chatsherman)
25
  history.append((talk_to_chatsherman, output))
26
+ return history, ""
27
 
28
  title = "ChatSherman"
29
  description = "This is an AI chatbot powered by ShermanAI."
 
33
  ["How do you calculate the force required to move an object?", []]
34
  ]
35
  inputs = [gr.inputs.Textbox(label="Enter your question: "), "state"]
36
+ outputs = ["chatbot", "state"]
37
+ interface = gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title=title, description=description, examples=examples)
 
 
 
 
 
 
 
38
  interface.launch(debug=True)