Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -72,13 +72,6 @@ try:
|
|
| 72 |
with gr.Blocks(
|
| 73 |
title=settings.app_name,
|
| 74 |
theme=gr.themes.Soft(),
|
| 75 |
-
head="""
|
| 76 |
-
<meta name="apple-mobile-web-app-capable" content="yes">
|
| 77 |
-
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
| 78 |
-
<meta name="mobile-web-app-capable" content="yes">
|
| 79 |
-
<meta name="theme-color" content="#5b21b6">
|
| 80 |
-
<link rel="manifest" href="/manifest.json">
|
| 81 |
-
""",
|
| 82 |
) as demo:
|
| 83 |
gr.Markdown(
|
| 84 |
f"""
|
|
@@ -204,9 +197,6 @@ try:
|
|
| 204 |
server_port=7860,
|
| 205 |
share=False,
|
| 206 |
show_error=True,
|
| 207 |
-
app_kwargs={
|
| 208 |
-
"docs_url": None, # Disable API docs for cleaner PWA
|
| 209 |
-
},
|
| 210 |
)
|
| 211 |
|
| 212 |
except ImportError as e:
|
|
@@ -241,16 +231,7 @@ except ImportError as e:
|
|
| 241 |
except Exception as e:
|
| 242 |
return "", "", f"Error: {str(e)}", ""
|
| 243 |
|
| 244 |
-
with gr.Blocks(
|
| 245 |
-
title="AI Writing Studio",
|
| 246 |
-
head="""
|
| 247 |
-
<meta name="apple-mobile-web-app-capable" content="yes">
|
| 248 |
-
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
| 249 |
-
<meta name="mobile-web-app-capable" content="yes">
|
| 250 |
-
<meta name="theme-color" content="#5b21b6">
|
| 251 |
-
<link rel="manifest" href="/manifest.json">
|
| 252 |
-
""",
|
| 253 |
-
) as demo:
|
| 254 |
gr.Markdown("# ✍️ AI Writing Studio (Simplified)")
|
| 255 |
gr.Markdown("⚠️ Running in fallback mode. Some features may be limited.")
|
| 256 |
|
|
|
|
| 72 |
with gr.Blocks(
|
| 73 |
title=settings.app_name,
|
| 74 |
theme=gr.themes.Soft(),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
) as demo:
|
| 76 |
gr.Markdown(
|
| 77 |
f"""
|
|
|
|
| 197 |
server_port=7860,
|
| 198 |
share=False,
|
| 199 |
show_error=True,
|
|
|
|
|
|
|
|
|
|
| 200 |
)
|
| 201 |
|
| 202 |
except ImportError as e:
|
|
|
|
| 231 |
except Exception as e:
|
| 232 |
return "", "", f"Error: {str(e)}", ""
|
| 233 |
|
| 234 |
+
with gr.Blocks(title="AI Writing Studio") as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 235 |
gr.Markdown("# ✍️ AI Writing Studio (Simplified)")
|
| 236 |
gr.Markdown("⚠️ Running in fallback mode. Some features may be limited.")
|
| 237 |
|