Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2315,45 +2315,17 @@ def update_rank_visibility(ft_val: str):
|
|
| 2315 |
# Gradio Interface
|
| 2316 |
# =================================================================================================
|
| 2317 |
|
| 2318 |
-
# def create_interface() -> gr.Blocks:
|
| 2319 |
-
# """Create and configure the Gradio interface."""
|
| 2320 |
-
|
| 2321 |
-
# # Try to create with theme, fallback to basic if not supported
|
| 2322 |
-
# try:
|
| 2323 |
-
# demo = gr.Blocks(title="IndiaAI GPU Infrastructure Recommender")
|
| 2324 |
-
# except Exception as e:
|
| 2325 |
-
# print(f"Note: Using basic Gradio configuration: {e}")
|
| 2326 |
-
# demo = gr.Blocks()
|
| 2327 |
-
|
| 2328 |
-
# with demo:
|
| 2329 |
-
# # Inject custom CSS
|
| 2330 |
-
# gr.HTML(CUSTOM_CSS)
|
| 2331 |
-
|
| 2332 |
def create_interface() -> gr.Blocks:
|
| 2333 |
"""Create and configure the Gradio interface."""
|
| 2334 |
|
| 2335 |
# Try to create with theme, fallback to basic if not supported
|
| 2336 |
try:
|
| 2337 |
-
demo = gr.Blocks(
|
| 2338 |
-
title="IndiaAI GPU Infrastructure Recommender",
|
| 2339 |
-
theme=gr.themes.Default(),
|
| 2340 |
-
)
|
| 2341 |
except Exception as e:
|
| 2342 |
print(f"Note: Using basic Gradio configuration: {e}")
|
| 2343 |
-
demo = gr.Blocks(
|
| 2344 |
|
| 2345 |
with demo:
|
| 2346 |
-
# Inject Open Graph meta tags for social sharing
|
| 2347 |
-
gr.HTML("""
|
| 2348 |
-
<head>
|
| 2349 |
-
<meta property="og:title" content="IndiaAI GPU Infrastructure Recommender" />
|
| 2350 |
-
<meta property="og:description" content="Calculate VRAM requirements and get optimal GPU recommendations for AI workloads using IndiaAI's infrastructure" />
|
| 2351 |
-
<meta property="og:image" content="https://cdn-uploads.huggingface.co/production/uploads/69312fe079dac228ed39fb04/kZDf4ccek1FcfpojnV_yJ.webp" />
|
| 2352 |
-
<meta property="og:url" content="https://chcc-psu-indiaai-gpu-reco.hf.space/" />
|
| 2353 |
-
<meta property="og:type" content="website" />
|
| 2354 |
-
</head>
|
| 2355 |
-
""")
|
| 2356 |
-
|
| 2357 |
# Inject custom CSS
|
| 2358 |
gr.HTML(CUSTOM_CSS)
|
| 2359 |
|
|
|
|
| 2315 |
# Gradio Interface
|
| 2316 |
# =================================================================================================
|
| 2317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2318 |
def create_interface() -> gr.Blocks:
|
| 2319 |
"""Create and configure the Gradio interface."""
|
| 2320 |
|
| 2321 |
# Try to create with theme, fallback to basic if not supported
|
| 2322 |
try:
|
| 2323 |
+
demo = gr.Blocks(title="IndiaAI GPU Infrastructure Recommender")
|
|
|
|
|
|
|
|
|
|
| 2324 |
except Exception as e:
|
| 2325 |
print(f"Note: Using basic Gradio configuration: {e}")
|
| 2326 |
+
demo = gr.Blocks()
|
| 2327 |
|
| 2328 |
with demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2329 |
# Inject custom CSS
|
| 2330 |
gr.HTML(CUSTOM_CSS)
|
| 2331 |
|