ipvikas commited on
Commit
c829901
1 Parent(s): bad8a0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -4,9 +4,6 @@ import gradio as gr
4
 
5
  openai.api_key = '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'
6
 
7
- #ref: https://beta.openai.com/docs/quickstart/start-with-an-instruction
8
- #ref: https://beta.openai.com/account/api-keys
9
-
10
  #1: OpenAI Chat
11
  def openai_chat(prompt):
12
  completions = openai.Completion.create(
@@ -38,7 +35,8 @@ examples = [
38
  #3: Launch Interface
39
  openai_chat_demo = gr.Interface(fn = chatbot,
40
  inputs = ["text",'state'],
41
- outputs = ["chatbot",'state']).launch(debug = True)
 
42
 
43
  ##################################
44
  #2:
 
4
 
5
  openai.api_key = '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'
6
 
 
 
 
7
  #1: OpenAI Chat
8
  def openai_chat(prompt):
9
  completions = openai.Completion.create(
 
35
  #3: Launch Interface
36
  openai_chat_demo = gr.Interface(fn = chatbot,
37
  inputs = ["text",'state'],
38
+ outputs = ["chatbot",'state'])
39
+ #.launch(debug = True)
40
 
41
  ##################################
42
  #2: