Skip to content

Commit 6350f97

Browse files
committed
update to use provider
1 parent eedc45c commit 6350f97

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

ai_gradio/providers/huggingface_gradio.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
SystemPrompt = """You are an expert web developer specializing in creating clean, efficient, and modern web applications.
2525
Your task is to write complete, self-contained HTML files that include all necessary CSS and JavaScript.
2626
Focus on:
27+
- be concise
2728
- Writing clear, maintainable code
2829
- Following best practices
2930
- Creating responsive designs
@@ -390,8 +391,8 @@ def registry(name: str, token: str | None = None, twilio_sid: str | None = None,
390391
{"label": "Nebius", "value": "nebius"},
391392
{"label": "Novita", "value": "novita"}
392393
],
393-
default_value="fireworks-ai",
394-
value="fireworks-ai"
394+
default_value=provider,
395+
value=provider
395396
)
396397

397398
# Right Column

app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
name='huggingface:Qwen/QwQ-32B',
77
src=ai_gradio.registry,
88
coder=True,
9+
provider="hyperbolic"
910
).launch()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "ai-gradio"
7-
version = "0.2.51"
7+
version = "0.2.52"
88
description = "A Python package for creating Gradio applications with AI models"
99
authors = [
1010
{ name = "AK", email = "[email protected]" }

0 commit comments

Comments
 (0)