Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
27 |
-
|
28 |
-
|
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)
|
|
|
|
|
|
|
|