joeli88 commited on
Commit
31727b8
1 Parent(s): 3f3cde7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -1,8 +1,5 @@
1
  import openai
2
  import gradio as gr
3
- import os
4
-
5
- #openai_api_key = os.getenv('API_KEY')
6
 
7
  openai.api_key = "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"
8
 
@@ -23,10 +20,6 @@ def chatbot(input):
23
  inputs = gr.inputs.Textbox(lines=7, label="Chat with AI")
24
  outputs = gr.outputs.Textbox(label="Reply")
25
 
26
- #gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title="AI Chatbot",
27
- # description="Ask anything you want",
28
- # theme="compact").launch(debug=True)
29
-
30
- gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title="AI Chatbot",
31
- description="Ask anything you want",
32
- theme="compact", debug=True).launch()
 
1
  import openai
2
  import gradio as gr
 
 
 
3
 
4
  openai.api_key = "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"
5
 
 
20
  inputs = gr.inputs.Textbox(lines=7, label="Chat with AI")
21
  outputs = gr.outputs.Textbox(label="Reply")
22
 
23
+ gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title="AI Chatbot",
24
+ description="Ask anything you want",
25
+ theme="compact").launch(debug=True)