Spaces:
Running
Running
Update dependency and unpacking bugs
Browse files- app.py +1 -1
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def generate_poster(pdf_file, logo_file, aff_logo_file, text_model, vision_model
|
|
| 112 |
error_msg = validate_inputs(pdf_file, logo_file, aff_logo_file, text_model, vision_model, poster_width, poster_height, anthropic_key, openai_key, anthropic_base_url, openai_base_url)
|
| 113 |
if error_msg:
|
| 114 |
cleanup_api_keys()
|
| 115 |
-
return None,
|
| 116 |
|
| 117 |
progress(0.1, desc="Initializing...")
|
| 118 |
|
|
|
|
| 112 |
error_msg = validate_inputs(pdf_file, logo_file, aff_logo_file, text_model, vision_model, poster_width, poster_height, anthropic_key, openai_key, anthropic_base_url, openai_base_url)
|
| 113 |
if error_msg:
|
| 114 |
cleanup_api_keys()
|
| 115 |
+
return None, f"❌ {error_msg}"
|
| 116 |
|
| 117 |
progress(0.1, desc="Initializing...")
|
| 118 |
|
requirements.txt
CHANGED
|
@@ -19,7 +19,7 @@ beautifulsoup4>=4.12.0
|
|
| 19 |
urllib3>=2.0.0
|
| 20 |
torch>=2.0.0
|
| 21 |
torchvision>=0.15.0
|
| 22 |
-
transformers
|
| 23 |
diffusers>=0.25.0
|
| 24 |
accelerate>=0.30.0
|
| 25 |
easyocr>=1.7.0
|
|
|
|
| 19 |
urllib3>=2.0.0
|
| 20 |
torch>=2.0.0
|
| 21 |
torchvision>=0.15.0
|
| 22 |
+
transformers==4.52.4
|
| 23 |
diffusers>=0.25.0
|
| 24 |
accelerate>=0.30.0
|
| 25 |
easyocr>=1.7.0
|