mrbeliever commited on
Commit
d84dbbc
·
verified ·
1 Parent(s): 970e9ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="centered")
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=100, key="caption_output")
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: