Spaces:
Runtime error
Runtime error
Commit
•
7a7833f
1
Parent(s):
850b0e4
add requirements
Browse files- app.py +2 -3
- requirements.txt +4 -0
app.py
CHANGED
@@ -23,9 +23,8 @@ def update(prompt, progress=gr.Progress(track_tqdm=True)):
|
|
23 |
return img
|
24 |
|
25 |
with gr.Blocks() as demo:
|
26 |
-
|
27 |
-
|
28 |
-
level_image = gr.Image()
|
29 |
btn = gr.Button("Generate level")
|
30 |
btn.click(fn=update, inputs=prompt, outputs=level_image)
|
31 |
pass
|
|
|
23 |
return img
|
24 |
|
25 |
with gr.Blocks() as demo:
|
26 |
+
prompt = gr.Textbox(label="Enter your MarioGPT prompt")
|
27 |
+
level_image = gr.Image()
|
|
|
28 |
btn = gr.Button("Generate level")
|
29 |
btn.click(fn=update, inputs=prompt, outputs=level_image)
|
30 |
pass
|
requirements.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
torch
|
2 |
+
transformers
|
3 |
+
scipy
|
4 |
+
tqdm
|