Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import openai
|
|
|
3 |
from openai._client import OpenAI
|
4 |
|
5 |
openai.api_key = "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"
|
@@ -30,3 +32,5 @@ def chat_interface(input_text):
|
|
30 |
|
31 |
# Create Gradio interface
|
32 |
gr.Interface(fn=chat_interface, inputs="text", outputs="text").launch(debug=True)
|
|
|
|
|
|
1 |
+
|
2 |
import gradio as gr
|
3 |
import openai
|
4 |
+
|
5 |
from openai._client import OpenAI
|
6 |
|
7 |
openai.api_key = "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"
|
|
|
32 |
|
33 |
# Create Gradio interface
|
34 |
gr.Interface(fn=chat_interface, inputs="text", outputs="text").launch(debug=True)
|
35 |
+
|
36 |
+
|