Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
|
|
6 |
from io import BytesIO
|
7 |
|
8 |
# Set page title and layout
|
9 |
-
st.set_page_config(page_title="Image Caption Generator", layout="
|
10 |
|
11 |
# API key from environment variable
|
12 |
API_KEY = os.environ.get("NEBIUS_API_KEY")
|
@@ -113,7 +113,7 @@ if uploaded_image:
|
|
113 |
.get("content", "No caption generated.")
|
114 |
)
|
115 |
|
116 |
-
st.text_area("Prompt Generated", caption, height=
|
117 |
except Exception as e:
|
118 |
st.error(f"Error processing the response: {e}")
|
119 |
else:
|
|
|
6 |
from io import BytesIO
|
7 |
|
8 |
# Set page title and layout
|
9 |
+
st.set_page_config(page_title="Image Caption Generator", layout="wide")
|
10 |
|
11 |
# API key from environment variable
|
12 |
API_KEY = os.environ.get("NEBIUS_API_KEY")
|
|
|
113 |
.get("content", "No caption generated.")
|
114 |
)
|
115 |
|
116 |
+
st.text_area("Prompt Generated", caption, height=200, key="caption_output")
|
117 |
except Exception as e:
|
118 |
st.error(f"Error processing the response: {e}")
|
119 |
else:
|