Spaces:
Running
Running
fix: remove gr.load() proxy, always build local app (#3)
Browse filesgr.load() only accepts HF model/space IDs, not arbitrary URLs.
The chat handler already shows a demo message when API keys are missing.
Co-authored-by: overthelex <mcvovkes@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -274,11 +274,5 @@ def build_app() -> gr.Blocks:
|
|
| 274 |
|
| 275 |
|
| 276 |
if __name__ == "__main__":
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
if is_hf_space and not has_api_keys():
|
| 280 |
-
demo = gr.load("https://agents.legal.org.ua")
|
| 281 |
-
else:
|
| 282 |
-
demo = build_app()
|
| 283 |
-
|
| 284 |
demo.launch()
|
|
|
|
| 274 |
|
| 275 |
|
| 276 |
if __name__ == "__main__":
|
| 277 |
+
demo = build_app()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
demo.launch()
|