Spaces:
Running
on
A100
Running
on
A100
Commit
·
133b3c7
1
Parent(s):
c229f95
more debugging
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ from dataclasses import fields
|
|
5 |
import gradio as gr
|
6 |
import transformers
|
7 |
from legogpt.models import LegoGPT, LegoGPTConfig
|
|
|
8 |
import zipfile
|
9 |
|
10 |
|
@@ -53,7 +54,7 @@ def main():
|
|
53 |
# Generate LEGO
|
54 |
print(f'Generating LEGO for prompt: "{prompt}"')
|
55 |
# output = model(prompt)
|
56 |
-
output = '2x4 (0,0,0)\n'
|
57 |
print(f'Finished generation!')
|
58 |
|
59 |
# Render results and write to files
|
|
|
5 |
import gradio as gr
|
6 |
import transformers
|
7 |
from legogpt.models import LegoGPT, LegoGPTConfig
|
8 |
+
from legogpt.data import LegoStructure
|
9 |
import zipfile
|
10 |
|
11 |
|
|
|
54 |
# Generate LEGO
|
55 |
print(f'Generating LEGO for prompt: "{prompt}"')
|
56 |
# output = model(prompt)
|
57 |
+
output = {'lego': LegoStructure.from_txt('2x4 (0,0,0)\n')}
|
58 |
print(f'Finished generation!')
|
59 |
|
60 |
# Render results and write to files
|