Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,6 @@ from transformers import pipeline as hf_pipeline
|
|
| 8 |
from diffusers import StableDiffusionPipeline
|
| 9 |
import torch
|
| 10 |
|
| 11 |
-
from dotenv import load_dotenv
|
| 12 |
-
load_dotenv()
|
| 13 |
-
|
| 14 |
-
openai.api_key = os.getenv('OPENAI_API_KEY')
|
| 15 |
-
|
| 16 |
story_gen = hf_pipeline("text-generation", model="tiiuae/falcon-7b-instruct")
|
| 17 |
|
| 18 |
def screenwriter(prompt: str) -> str:
|
|
|
|
| 8 |
from diffusers import StableDiffusionPipeline
|
| 9 |
import torch
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
story_gen = hf_pipeline("text-generation", model="tiiuae/falcon-7b-instruct")
|
| 12 |
|
| 13 |
def screenwriter(prompt: str) -> str:
|