Spaces:
Build error
Build error
Commit ·
0452376
1
Parent(s): 3eb6edd
Model replaced in HF
Browse files- README.md +3 -1
- translator/synth.py +1 -1
README.md
CHANGED
|
@@ -8,5 +8,7 @@ sdk_version: 5.49.0
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
+
# Unity → Unreal Code Translator
|
| 12 |
+
|
| 13 |
+
This Space converts **Unity C# code** into **Unreal C++ and Blueprint pseudo-code**, using an LLM backend with structured translation prompts.
|
| 14 |
|
|
|
translator/synth.py
CHANGED
|
@@ -24,7 +24,7 @@ def synthesize_cpp(parsed: dict, mapping: dict, prompt_context: str = "", model_
|
|
| 24 |
return generate_with_openai(prompt, model="gpt-4o-mini")
|
| 25 |
else:
|
| 26 |
from .llm_client import generate_with_hf
|
| 27 |
-
return generate_with_hf(prompt, model="
|
| 28 |
|
| 29 |
|
| 30 |
def synthesize_blueprint_python(parsed: dict, mapping: dict, model_backend="hf") -> str:
|
|
|
|
| 24 |
return generate_with_openai(prompt, model="gpt-4o-mini")
|
| 25 |
else:
|
| 26 |
from .llm_client import generate_with_hf
|
| 27 |
+
return generate_with_hf(prompt, model="HuggingFaceH4/zephyr-7b-beta")
|
| 28 |
|
| 29 |
|
| 30 |
def synthesize_blueprint_python(parsed: dict, mapping: dict, model_backend="hf") -> str:
|