Spaces:
Running
Running
build fix
Browse files
app.py
CHANGED
@@ -158,7 +158,10 @@ Write like the stakes are real. Because they are.
|
|
158 |
gr.Markdown("# Greg Logan AI - Brand Strategy Assistant")
|
159 |
gr.Markdown("Get direct, punchy, and provocative brand strategy insights from Greg Logan's perspective.")
|
160 |
|
161 |
-
chatbot = gr.Chatbot(
|
|
|
|
|
|
|
162 |
with gr.Row():
|
163 |
msg = gr.Textbox(
|
164 |
show_label=False,
|
@@ -181,5 +184,7 @@ auth_password = os.getenv("AUTH_PASSWORD", "admin")
|
|
181 |
|
182 |
# Launch with authentication
|
183 |
demo.launch(
|
|
|
|
|
184 |
auth=(auth_username, auth_password) if auth_username and auth_password else None
|
185 |
)
|
|
|
158 |
gr.Markdown("# Greg Logan AI - Brand Strategy Assistant")
|
159 |
gr.Markdown("Get direct, punchy, and provocative brand strategy insights from Greg Logan's perspective.")
|
160 |
|
161 |
+
chatbot = gr.Chatbot(
|
162 |
+
height=600,
|
163 |
+
type="messages" # Use the new messages format
|
164 |
+
)
|
165 |
with gr.Row():
|
166 |
msg = gr.Textbox(
|
167 |
show_label=False,
|
|
|
184 |
|
185 |
# Launch with authentication
|
186 |
demo.launch(
|
187 |
+
server_name="0.0.0.0", # Required for Hugging Face Spaces
|
188 |
+
server_port=7860, # Default Gradio port
|
189 |
auth=(auth_username, auth_password) if auth_username and auth_password else None
|
190 |
)
|