Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- app.py +20 -1
- manifest.json +27 -0
app.py
CHANGED
|
@@ -72,6 +72,13 @@ try:
|
|
| 72 |
with gr.Blocks(
|
| 73 |
title=settings.app_name,
|
| 74 |
theme=gr.themes.Soft(),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
) as demo:
|
| 76 |
gr.Markdown(
|
| 77 |
f"""
|
|
@@ -197,6 +204,9 @@ try:
|
|
| 197 |
server_port=7860,
|
| 198 |
share=False,
|
| 199 |
show_error=True,
|
|
|
|
|
|
|
|
|
|
| 200 |
)
|
| 201 |
|
| 202 |
except ImportError as e:
|
|
@@ -231,7 +241,16 @@ except ImportError as e:
|
|
| 231 |
except Exception as e:
|
| 232 |
return "", "", f"Error: {str(e)}", ""
|
| 233 |
|
| 234 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 235 |
gr.Markdown("# ✍️ AI Writing Studio (Simplified)")
|
| 236 |
gr.Markdown("⚠️ Running in fallback mode. Some features may be limited.")
|
| 237 |
|
|
|
|
| 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 |
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 |
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 |
|
manifest.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "AI Writing Studio",
|
| 3 |
+
"short_name": "Writing Studio",
|
| 4 |
+
"description": "AI-powered text revision with FLAN-T5 and rubric scoring",
|
| 5 |
+
"start_url": "/",
|
| 6 |
+
"display": "standalone",
|
| 7 |
+
"background_color": "#ffffff",
|
| 8 |
+
"theme_color": "#5b21b6",
|
| 9 |
+
"orientation": "portrait-primary",
|
| 10 |
+
"icons": [
|
| 11 |
+
{
|
| 12 |
+
"src": "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='0.9em' font-size='90'>✍️</text></svg>",
|
| 13 |
+
"sizes": "192x192",
|
| 14 |
+
"type": "image/svg+xml",
|
| 15 |
+
"purpose": "any maskable"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"src": "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='0.9em' font-size='90'>✍️</text></svg>",
|
| 19 |
+
"sizes": "512x512",
|
| 20 |
+
"type": "image/svg+xml",
|
| 21 |
+
"purpose": "any maskable"
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
"categories": ["education", "productivity", "utilities"],
|
| 25 |
+
"screenshots": [],
|
| 26 |
+
"prefer_related_applications": false
|
| 27 |
+
}
|