Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def generate_caption_from_image(image_path):
|
|
20 |
|
21 |
def generate_story_from_caption(caption):
|
22 |
# Generate story based on caption
|
23 |
-
llm =
|
24 |
repo_id="tiiuae/falcon-7b-instruct",
|
25 |
verbose=False,
|
26 |
model_kwargs={"temperature": 0.2, "max_new_tokens": 4000})
|
|
|
20 |
|
21 |
def generate_story_from_caption(caption):
|
22 |
# Generate story based on caption
|
23 |
+
llm = HuggingFaceHub(huggingfacehub_api_token=os.getenv('HUGGING_FACE_API_TOKEN'),
|
24 |
repo_id="tiiuae/falcon-7b-instruct",
|
25 |
verbose=False,
|
26 |
model_kwargs={"temperature": 0.2, "max_new_tokens": 4000})
|