Spaces:
Sleeping
Sleeping
Deminiko
commited on
Commit
·
cc59668
1
Parent(s):
4cfa289
fix: Remove css parameter from gr.Blocks for Gradio 6.0 compatibility
Browse files
app.py
CHANGED
|
@@ -20,15 +20,8 @@ import requests
|
|
| 20 |
import time
|
| 21 |
from typing import Optional, List, Dict, Any
|
| 22 |
|
| 23 |
-
#
|
| 24 |
-
#
|
| 25 |
-
# =============================================================================
|
| 26 |
-
try:
|
| 27 |
-
from ui.styles import CUSTOM_CSS
|
| 28 |
-
UI_STYLES_AVAILABLE = True
|
| 29 |
-
except ImportError:
|
| 30 |
-
CUSTOM_CSS = ""
|
| 31 |
-
UI_STYLES_AVAILABLE = False
|
| 32 |
|
| 33 |
# Configure logging
|
| 34 |
logging.basicConfig(level=logging.INFO)
|
|
@@ -226,7 +219,7 @@ def quick_build_circuit(template: str, num_qubits: int) -> str:
|
|
| 226 |
# GRADIO INTERFACE
|
| 227 |
# =============================================================================
|
| 228 |
|
| 229 |
-
with gr.Blocks(title="QAgents - Quantum Circuit Assistant"
|
| 230 |
|
| 231 |
# Header
|
| 232 |
gr.Markdown("""
|
|
|
|
| 20 |
import time
|
| 21 |
from typing import Optional, List, Dict, Any
|
| 22 |
|
| 23 |
+
# Note: Gradio 6.0 doesn't support custom CSS in gr.Blocks()
|
| 24 |
+
# UI styles module available but not used in this version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
# Configure logging
|
| 27 |
logging.basicConfig(level=logging.INFO)
|
|
|
|
| 219 |
# GRADIO INTERFACE
|
| 220 |
# =============================================================================
|
| 221 |
|
| 222 |
+
with gr.Blocks(title="QAgents - Quantum Circuit Assistant") as demo:
|
| 223 |
|
| 224 |
# Header
|
| 225 |
gr.Markdown("""
|