Spaces:
Sleeping
Sleeping
Commit
·
abd9f79
1
Parent(s):
9991862
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Replace 'your_openai_api_key' with your actual OpenAI API key
|
5 |
-
api_key = "
|
6 |
|
7 |
def generate_response(text):
|
8 |
generator = pipeline("text-generation", model="EleutherAI/gpt-neo-2.7B", device=0) # You can choose a different model here
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Replace 'your_openai_api_key' with your actual OpenAI API key
|
5 |
+
api_key = "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"
|
6 |
|
7 |
def generate_response(text):
|
8 |
generator = pipeline("text-generation", model="EleutherAI/gpt-neo-2.7B", device=0) # You can choose a different model here
|